how to customize search results ?
-
Hello to all my friends and teachers, I have a question, I wanted search results to be displayed in 3 columns.
search.php codes:
<?php global $wp_query?> <?php get_header()?> <div class="title-wrapper"><div class="title-bg"></div> <div class="title clearfix"> <h1>search results/h1> <div id="drag_btn" href="#"></div> <div id="slide_btn" href="#"></div> </div></div> <div id="freespace-title"></div> <div class="content-wrapper nosidebars clearfix"> <div class="content clearfix"> <?php teardrop_breadcrumb_nav()?> <div class="article" id="single"> <h2>search for<?php echo get_search_query()?>: <?php echo $wp_query->post_count?> results/h2> <?php while(have_posts()):the_post()?> <div class="search-results" style="width: 250px; position: relative; left: -10px;"> <h4><a href="<?php the_permalink()?>"><?php the_title()?></a></h4> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(400,400)); } ?> </div> <?php endwhile?> </div> </div> </div> <div id="freespace"></div> <?php get_footer()?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘how to customize search results ?’ is closed to new replies.