WordPress.org

Forums

how to customize search results ? (2 posts)

  1. aliwishstar
    Member
    Posted 2 years ago #

    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()?>
  2. Jonathan Dingman
    Member
    Posted 2 years ago #

    Please be patient. These support forums are volunteer driven, so bumping your thread isn't going to help it get solved any faster.

    To show the results in 3 columns, you need to setup the HTML structure of the page so that it reflects 3 columns.

    That depends entirely on your theme setup.

Topic Closed

This topic has been closed to new replies.

About this Topic