Forums Forums Search & Filter Pro Search in a header, display on a archive page.

Tagged: , , , ,

Viewing 11 post (of 11 total)
  • Trevor
    #221184

    Then you would need something like this, in your child theme functions.php file:

    function sandf_change_search_url_rewrite() {
    	if ( is_search() && ! empty( $_GET['s'] ) ) {
    		wp_redirect( home_url( "myresultsslug/?_sf_s=" ) . urlencode( get_query_var( 's' ) ) );
    		exit();
    	}	
    }
    add_action( 'template_redirect', 'sandf_change_search_url_rewrite' );
Viewing 11 post (of 11 total)