Default Search Page Result
-
my search.php code is this:
<?php get_header(); ?>
<section>
<div class=”container”>
<div class=”raw”>
<div class=”col-md-9″>
<div class=”raw”>
<div class=”col-md-12″>
<div class=”featured-contents”><?php if ( have_posts() ) : ?>
<!– HTML content appropriate for results found goes here –>
<?php while ( have_posts() ) : the_post();
// This “The Loop” where search results are output
get_template_part(‘content’, ‘search’);endwhile; ?>
<?php else : ?>
<div class=”alert alert-info”>
<p>Sorry, but nothing matched your search criteria. Please try again with some different keywords.</p>
</div>
<?php endif; ?></div>
</div>
</div>
</div>
<?php get_template_part(‘siderbar_right’); ?>
</div></div>
</section>
<?php get_footer(); ?>But I will like the result page to display as same like when one searches on google. The result should just display title and excepts.
I will appreciate any ones perspective to this.
- The topic ‘Default Search Page Result’ is closed to new replies.