Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP Pages that displays a specified member directory search results

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Slava UA
    Slava UA
    Participant

    @slaffik

    Open members/members-loop.php file in your theme.
    Copy its code and paste into your page template file.
    Find this string in that code:
    `bp_has_members( bp_ajax_querystring( ‘members’ )`
    Change it to smth like this:
    `bp_has_members(array(‘search_terms’ => ‘virginia beach’))`

    PS Open `/buddypress/bp-members/bp-members-template.php` file, line 264, to see all possible values that you can pass to a function.

    Avatar of Slava UA
    Slava UA
    Participant

    @slaffik

    Take care of quotes, they were converted in a wrong way in the snippet above.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.