Add Profile Search to Members Profile Pages
-
Hi.
I am running BP Profile Search 3.6.2 on BP 1.9.2 and using the latest BuddyBoss theme and would like to have the search appear on both the Members page (i.e. domain.com/members/) and also appear on the profile pages (i.e. domain.com/members/Username, domain.com/members/Username/profile, domain.com/members/Username/notifications, etc).
I copied the following code from /wp-content/themes/buddyboss/buddypress/members/index.html and used the php code from the plugin docs:-
<div id="members-dir-search" class="dir-search" role="search"> <?php do_action ('bp_profile_search_form'); ?> </div><!-- #members-dir-search -->
I put this code in /members/single/member-header.php and I only seem to get the ‘Toggled search’ effect. There is no single search field on Profile pages, but each search form field in relation to those selected on the plugin settings page.
So, I tried the code from the themes members/index.php:-
<?php do_action ('bp_profile_search_form'); ?>
This seemed to do what I wanted – a single search field ‘Search Members…’ – but when I click Search, nothing happens.Unfortunately the Profile Search widget also displays all fields – but the default single search field on the Members page does exactly what I need it to do.
Has anyone found a solution for member-header.php?
- The topic ‘Add Profile Search to Members Profile Pages’ is closed to new replies.