[resolved] How to display specific post order (2 posts)

  1. creativelifeform
    Posted 4 years ago #

    Hi all,

    I am wondering if there is a way to display a specific post range order using WP_Query.

    For example I have two columns on the page, the right column is the main column and will display the latest posts in the category (let's say 5) so my function looks like this

    <?php $my_query = new WP_Query('cat=6&showposts=5'); ?>

    but, in the left hand column I want to display 10 posts, but only 10 which come AFTER the fifth. So something like

    <?php $my_query = new WP_Query('cat=6&showposts=6-10'); ?>

    I know that looks weird but maybe it will illustrate my point better.

    Any help greatly appreciated. Thanks!

  2. creativelifeform
    Posted 4 years ago #

    Ah! the offset parameter solved my problem.

Topic Closed

This topic has been closed to new replies.

About this Topic