Skip to:
Content
Pages
Categories
Search
Top
Bottom

Filtering members query to show only friends


  • sandorastarita
    Participant

    @sandorastarita

    Hello,

    I am working with WP 4.7.2 and buddypress 2.8, with Onesocial Marketplace theme.

    I need to change the members index page to show only friends of the logged user. I have copied the members-loop.php file to my child-theme buddypress subdirectory. I can change manually the loop by continuing if members are not friends, but can’t find out how to change the number of members that is showed in title. Additionally, I am looking for a more consistent logic, which should be filtering the query to get only friends.

    Can you help me with that?

    Thanks in advance.

  • You must be logged in to reply to this topic.
Skip to toolbar