Treehouse: Grow your CSS skills. Land your dream job.

order WP posts by columns

  • # January 2, 2011 at 9:56 am


    I am working on a wp powered site, and I am looking for a way to order my post headlines in three columns.

    Here is a screenshort of what I want to achieve:

    Do you have any idea on how to achieve this?


    # January 2, 2011 at 11:06 am

    Yep set up 3 separate loops and use the ‘offset’ parameter in query_posts.


    < ? php query_posts('posts_per_page=8') ?>

    < ? php query_posts('posts_per_page=8&offset=8') ?>

    < ? php query_posts('posts_per_page=8&offset=16'> ?>

    Use each of those at the start of their own loop. Put each loop into a column and float each one in the CSS.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.