BuddyDev

Better member type directory title for BuddyPress

Are you using BuddyPress member types on your site? If yes, you might have noticed the issue with member type directory title. In our forum, one of our members asked about it. Since I thought It may benefit more people, here is the code with an example.

Screenshot:- Member type directory title default

Note the page title, for Teachers member type directory, It is still showing “Members”

Screenshot 2:- Updated Member type directory title

Note the title, Now it uses the name of the registered member type in directory title.

Code:-

You can put the following code to your bp-custom.php or your theme’s functions.php

Enjoy!

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">