Example #1
0
?>
</span></div>

<?php 
echo '<p>Found ' . $wp_query->found_posts . ' results.</p>';
?>
 

<?php 
/*?><?php echo '<p><a href="' . get_bloginfo('url') . '?s=' . get_search_query() . '&orderby=post_date&order=desc">Order results by date<a></p>'; ?><?php */
?>


<?php 
if (function_exists('relevanssi_didyoumean')) {
    relevanssi_didyoumean(get_search_query(), "<p>Did you mean: ", "</p>", 5);
}
?>
    
<?php 
global $query_string;
$query_args = explode("&", $query_string);
$search_query = array();
foreach ($query_args as $key => $string) {
    $query_split = explode("=", $string);
    $search_query[$query_split[0]] = urldecode($query_split[1]);
}
// foreach
$search = new WP_Query($search_query);
?>
Example #2
0
        if (in_array('vacancy', $pt)) {
            if ($searchcon) {
                $searchcon .= " or";
            }
            $searchcon .= " " . __('vacancies', 'govintranet');
        }
    }
    echo "<p>";
    if ($pt) {
        printf(__('Couldn\'t find anything in %s. Try searching the whole intranet.', 'govintranet'), $searchcon);
    } else {
        _e('Couldn\'t find anything on the intranet like that. Sometimes using fewer words can help.', 'govintranet');
    }
    echo "</p>";
    if (function_exists('relevanssi_didyoumean')) {
        relevanssi_didyoumean(get_search_query(), "<div class='did_you_mean'><h2>" . __('Did you mean?', 'govintranet') . "</h2><p> ", "</p></div>", 5);
    }
    ?>
		<div class="well">
		<form class="form" role="form" id="serps_search" action="<?php 
    echo site_url('/');
    ?>
">
			<div class="form-group">
		    <label for="snf"><?php 
    _e('Search again', 'govintranet');
    ?>
</label>
			<input type="text" class="form-control" placeholder="Search again" name="s" id="snf" value="<?php 
    echo the_search_query();
    ?>
Example #3
0
</p>
				<?php 
}
?>
				<?php 
get_search_form();
?>
			</div>
		</div><!--/row-->
	</div><!--/.container-->
</header>
<section class="bg-default">
	<div class="container">
		<?php 
if (function_exists('relevanssi_didyoumean')) {
    relevanssi_didyoumean(get_search_query(), '<p class="text-info didyoumean">Did you mean: ', '?</p>', 5);
}
?>
		<?php 
if (have_posts()) {
    ?>
		<div class="row">
			<div class="col-md-10 col-lg-8">
				<?php 
    while (have_posts()) {
        the_post();
        get_template_part('content', 'search');
    }
    ?>
			</div>
			<div class="col-md-2 col-lg-4 sidebar sidebar-right hidden-sm hidden-xs">