Ready to get started?Download WordPress


query_posts doesn't get new posts (2 posts)

  1. sccr410
    Posted 6 years ago #

    I am trying to use the query_posts function after a page item to get the 5 latest posts. query_posts doesn't seem to do anything, I only get the data for the page again. The $posts value does not change like it should.

  2. sccr410
    Posted 6 years ago #

    Resolved: need to use like this:

    $posts = query_posts(...);

Topic Closed

This topic has been closed to new replies.

About this Topic