BuddyPress Member Type Generator – Showing content to specific BuddyPress Member

  • Participant
    Marko Jezernik on #8764

    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?

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #8767

    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.

You must be logged in to reply to this topic.

This topic is: not resolved