• 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)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘how to customize search results ?’ is closed to new replies.