WordPress.org

Ready to get started?Download WordPress

Forums

oldest last 10 post (3 posts)

  1. botakedan
    Member
    Posted 5 years ago #

    Let say that i had 20 post. at index page there were the last 10 post i had made (post 11 till 20).

    the question is... how to put in the sidebar the oldest 10 post (post 10 to 1 )

  2. buddha trance
    Member
    Posted 5 years ago #

    Use the query_posts template tag.

    In this case, you would put in sidebar.php of your theme
    <?php query_posts('showposts=10&offset=10'); ?>

  3. botakedan
    Member
    Posted 5 years ago #

    Hahahaha... thanks.
    Its work

Topic Closed

This topic has been closed to new replies.

About this Topic