How to display ONLY non-friended persons.
-
Hello!
I have ran into annoying problem – I cannot find out how to edit the members loop in order to output a list of people who are not the logged in persons friends.According to codex –
When using a loop on a members profile use user_id=0 to show non-friends of the displayed user.
My code begining –
<?php if ( bp_has_members( 'user_id=0' . bp_loggedin_user_id() ) ) : ?>
It works… BUT I just can’t figure out why – when I use user-id=0 it does the opposite what it is supposed to do – it displays ONLY friends. I tried replacing 0 with 1 or Null or != or whatver – didn’t help.
I would be very grateful if somebody could help me out please!? 🙂
- The topic ‘How to display ONLY non-friended persons.’ is closed to new replies.