Display results directly under the search form
-
Hi Andrea,
thank for your plugin
I’ve read all topics speaking about how to display results in an other page.
My case is a bit strange… :
I’ve created a new profile tab (using bp_core_new_nav_item)
and a new subnav item (bp_core_new_subnav_item)
So now I have a kind of “page” :
array(
‘name’ => __( ‘Fitness’ ),
‘slug’ => ‘fitness’,
‘parent_url’ => $bp->loggedin_user->domain . $parent_slug.’/’,
‘parent_slug’ => $parent_slug,
‘screen_function’ => ‘my_profile_page_function_to_show_screen1’
)
result = /members/username/activites/fitnessInside, I add your search form :
function my_profile_page_function_to_show_screen1() {
//add content here – last is to call the members plugin.php template
add_action( ‘bp_template_content’, ‘my_profile_page_function_to_show_screen1_content’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );}
function my_profile_page_function_to_show_screen1_content() {
echo ‘here the bp search profil form : ‘;
do_action (‘bps_display_form’, 5907, ‘members/bps-form-inline’);
echo ‘and now, I would like the bp search profil results just here :’;}How can I do to get the results in the same “page” as the form ?
Hope that makes sense….
Kind Regards
Akal
- The topic ‘Display results directly under the search form’ is closed to new replies.