Get the current user group for condition
I’m actually using WordPress 3.9.1 and BuddyPress 2.0.1.
I would like to set a condition where : if current user is a member of the group X, then I display Y content. I would like to do this outside of the buddypress loop.
How can we know if the current user is in a group and in which group he is?
Thank you in advance !
You must be logged in to reply to this topic.