Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi raizaduran. You can do this by modifying two theme files:

    1. Copy archive.php and search.php to a child theme. If you’re not running a child theme you can create one using the process described on the theme web site:
    http://docs.presscustomizr.com/article/239-using-a-child-theme-with-hueman

    2. Locate this section of code in both files:

    <div class="post-list group">
    	<?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
    		<?php get_template_part('content'); ?>
    	<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
    </div><!--/.post-list-->

    3. Change this:

    if($i % 2 == 0)

    to this:

    if($i % 3 == 0)

    4. Add this CSS to your child theme style.css file:

    /* set post width for 3 columns */
    .archive .post-row .post, .search-results .post-row .post {
        width: 33%;
    }
    Thread Starter raizaduran

    (@raizaduran)

    Works great. Thank you bdbrown.

    But one mess here, results are showing 10 only. Check it here.

    http://www.indiavirtualinfo.com/india-travel/category/religious/

    Even it asks to go for page 2, still it shows only 10 results, ideally it should show 12. isn’t it?

    Go to Settings > Reading and set “Blog pages show at most” to 12.

    Thread Starter raizaduran

    (@raizaduran)

    ouch! how silly I’m 😛

    Thank you so much 🙂 you’ve been a great help.

    You’re welcome. Glad it’s working. If you don’t have any further questions please mark the topic as Resolved. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘3 column results in archive?’ is closed to new replies.