Tagged: buddypress, BuddyPress Member Types, member types
On my project I’m using BuddyPress Member Types. The problem is I would like to display specific content to each member types. Somethin like; website checks Member Type based on logged in user id and then it shows a piece of content based on the member type.
Has anyone tried this? If so can you pint me in the right direction?
Hi Marko,
Thank you for asking.I have done it for multiple clients of ours.
It is similar to how you will do the things to show different content for different users based on roles.
in case you want to check for a specific member type, you can use the following function
bp_has_member_type( bp_loggedin_user_id(), 'your_members_type' );
Hope that helps you.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This topic is: not resolved