search page not found? (search.php or searchpage.php)

You should be able to access search pages via search/foo as well as ?s=foo. This search rewrite rule is built in into WP since version 1.5. I tested it and it works. As for the template files, you will need search.php, searchpage.php is not used. Also see: http://alexking.org/blog/2007/08/30/friendly-search-urls#comment-57678 http://codex.wordpress.org/Creating_a_Search_Page

Add Filter to Ignore a Post/Page or a Number of Post/Pages

you can use pre_get_posts filter hook and set the post__not_in parameter of the query ex: function exclude_from_search_filter($query) { if ( !$query->is_admin && $query->is_search) { $query->set(‘post__not_in’, array(40, 9) ); // id of page or post } return $query; } add_filter( ‘pre_get_posts’, ‘exclude_from_search_filter’ );

Redirecting search to specific templates with $_GET[“post_type”]

I think you need to check status in your search-news.php template. And if $_GET[‘status’] is equal to future, create custom loop for it. Your search-news.php could look something like this: if ( $_GET[‘status’] == ‘future’ ) : $the_query = new WP_Query( array( ‘post_type’ => ‘news’, ‘post_status’ => ‘future’, // else arguments … ) ); while … Read more

Display future posts in search

Something like this might work: <?php while (have_posts()) : the_post(); ?> <?php if ( ‘future’ === get_post_status( the_ID() ) ) : ?> <div <?php post_class(); ?>> <div class=”news-item” onclick=”location.href=”https://wordpress.stackexchange.com/questions/54815/<?php echo the_permalink(); ?>””> <h2><a href=”https://wordpress.stackexchange.com/questions/54815/<?php echo the_permalink(); ?>”><?php echo the_time(‘d.m.Y’); ?> / <?php echo the_title(); ?></a></h2> <p class=”news-page”> <?php if (get_field(‘description’) != “”) { ?> <?php … Read more

search using multiple taxonomies and keyword

I would recommend you to use a hook for pre_get_posts action. This action is fired before appropriate posts are fetched from db. In this hook you can add extra parameters to your query and have influence on returned results. So the basic implementation of your hook could be like this: add_action( ‘pre_get_posts’, ‘wpse8170_pre_get_posts’ ); function … Read more