WordPress.org

Ready to get started?Download WordPress

Forums

Need help in the_post() call (2 posts)

  1. yekxmerr
    Member
    Posted 2 years ago #

    Guys once again im here asking for your help, im facing a small issue (i think) that keeps bugging me. I need to use "the_post" to call the last 20 posts, except the first 5. Why ?

    - I've a static front page that shows content and calls for the latest 20 posts and on the bottom i've a "more posts" link to the blog page but i don't want to show the posts i've call in the last page(home) so i need to call the next 20. It is a bit confusing but i hope it's simple to solve.

    PS: i know this could be done with pagination, etc but i didn't got it to work properly and this solution works.

    I use this to call the posts on both pages(static front + blog page)
    <?php while (have_posts()) : the_post('numberposts=20&category=1'); ?>

    Thank you.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic