Support for custom search page
-
Hello,
Please how can I make your plugin work with this code below
// Change the search results page URL slug function wpcs_search_url_rewrite_rule() { if ( is_search() && !empty( $_GET['s'] ) ) { wp_redirect( home_url( '/search/' ) . urlencode( get_query_var( 's' ) ) ); exit(); } } add_action( 'template_redirect', 'wpcs_search_url_rewrite_rule' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Support for custom search page’ is closed to new replies.