Add a variable in bp_has_members
I have this code in the members loop:
<?php if (bp_has_members( array( 'include' => include_by_meta('Woman', 'Gender'), 'type' => 'newest') )) : ?>
What I want to do is to replace ‘Woman’ by the xprofile value of the current logged in user.
Must be easy, but I can’t figrured it out.
- The topic ‘Add a variable in bp_has_members’ is closed to new replies.