- This topic has 11 replies, 2 voices, and was last updated 6 years, 4 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Search in a header, display on a archive page.
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' );