More than one search results page template for two searches on site
Yes you can. From the WordPress Codex: function my_page_template_redirect() { if( is_page( ‘goodies’ ) && ! is_user_logged_in() ) { wp_redirect( home_url( ‘/signup/’ ) ); die; } } add_action( ‘template_redirect’, ‘my_page_template_redirect’ ); Looking at your code, I think you can figure out how to adjust this to your situation.