Before you ask please READ THIS

Showing 8 blogs on the home page instead of 4

edited June 2013 in Skyfashion Posts: 2
Is there way to change home page the latest blog posts. I would like to show 8 blogs, in 4 columns and 2 rows.

Comments

  • Posts: 493
    Hi ealganatay,

    Open file front-page.php in your skyfashion theme folder.
    Find code
    <div id="latest_blog_posts">
        <h2 class="module_title no_content_font"><?php echo __('Latest blog posts', TPL_SLUG) ?></h2>
    
        <div id="latest_blog_posts_container" class="container border_top">
            <?php
            $counter = 1;
            global $more;
    //        $wp_query->query(get_option('posts_per_page') . '&paged=' . $paged);
    
    //        $wp_query->query( ( is_front_page() ? 10 : get_option('posts_per_page') ) . '&paged=' . $paged );
            $wp_query->query(  'posts_per_page=4'  . '&paged=' . $paged );
    
    
    //        echo '<pre>'.get_option('posts_per_page').'</pre>';
    
            while ($wp_query->have_posts() && $counter <= 4) : $wp_query->the_post();
    in line
    while ($wp_query->have_posts() && $counter <= 4)
    change counter to 8
    while ($wp_query->have_posts() && $counter <= 8)
    Let me know if it works

    With regards
  • Thank you it worked..

    Is there a way to add a spacing between two rows, because it is very close to each other
  • Posts: 493
    Hi ealganatay,

    Please send me a link to your webpage.

    With regards
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!