• Resolved adamgoldco

    (@adamgoldco)


    Hello WordPress community!

    There are plenty of tutorials on the net explaining how to get posts on the homepage to display in 2 columns.

    HOWEVER, what I am after is a way to show homepage posts in 2 columns AFTER the first 3 posts have been shown in a single column.

    Does anyone have any guidance on how I might be able to accomplish this?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • you can try and use a structure like this within the loop:

    <?php if( $wp_query->current_post <= 2 ) : ?>
    do some different html structure for the first three posts
    <?php else : ?>
    do this for the rest
    <?php endif; ?>

    as details will depend on your curent theme, please post more information.

    Thread Starter adamgoldco

    (@adamgoldco)

    Thanks alcymth!

    I’m gonna try this out and see where I get. I’ll report back if I need further assistance.

    Thanks again!

    Thread Starter adamgoldco

    (@adamgoldco)

    Success! That code worked perfectly alcymyth. Thanks so much for your help!!!

    You can see the finished product here: https://goldinformant.com/new

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 Columns of Posts on the Homepage AFTER the first 3 Posts’ is closed to new replies.