Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to redirect to custom search result page?


  • imjscn
    Participant

    @imjscn

    I replace bp header search form with google search form (name = ‘q’ ) , then added this code:
    function bp_google_action_search_site(){
    global $bp;
    if ( bp_is_current_component( bp_get_search_slug() ) )
    bp_core_load_template( apply_filters( 'bp_core_template_search_template', 'search-google' ) );
    }
    remove_action( 'bp_init', 'bp_core_action_search_site', 5 );
    add_action( 'bp_init', 'bp_google_action_search_site', 10 );

    The search action get redirected to homepage.
    How to redirect the search result page?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to redirect to custom search result page?’ is closed to new replies.
Skip to toolbar