Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_search_form(); ?>
- <hr class="dotted">
- <div id="search-results" class="marginbottom2">
- <?php if(have_posts()) {
- // Results found
- global $wp_query;
- echo '<p>'.$wp_query->found_posts.' result'.(($wp_query->found_posts > 1) ? 's' : null).' found.</p>';
- while(have_posts()) {
- the_post();
- echo '<li><a href="'.get_the_permalink().'">'.get_the_title().'</a></li>';
- }
- get_template_part('nav', 'below');
- } else {
- // No results
- echo '<p>Sorry, your search returned nothing. Did you spell it correctly?</p>';
- } ?>
- </div>
- <p class="lead halfmargin">Can't find what you're looking for?</p>
- <p><a href="/contact-us/" class="btn btn-primary">Contact Us</a></p>
Add Comment
Please, Sign In to add comment