WordPress.org

Ready to get started?Download WordPress

Forums

query_posts:start from the second oldest post? (2 posts)

  1. Nudger
    Member
    Posted 5 years ago #

    I'm using a theme that puts my newest post at the top of the page on it's own, and then lists all the rest;
    <?php query_posts("showposts=1&cat=$category")?>

    I want this list to skip the newest post and go straight onto the second one. Is that possible?

  2. stvwlf
    Member
    Posted 5 years ago #

    yes

    <?php query_posts("showposts=1&cat=$category&offset=1")?>

    offset 1 means skip the 1st post, start with 2nd

Topic Closed

This topic has been closed to new replies.

About this Topic