WordPress.org

Support

Support » How-To and Troubleshooting » get posts tag and codex question

get posts tag and codex question

Viewing 2 replies - 1 through 2 (of 2 total)
  • As far as I know this works with The Loop of 1.2.x version. Since 1.5 The Loop has been changed. See The Loop and The Loop in Action in the Codex. You can also see the various implementations of the query_posts as presented in many threads in the forum (it is preferred in WP 1.5 – at least that was my understanding)

    No, I know the tag works, but if you look at the example at the codex, it says, as I say in my first post

    If you had your blog configured to show just one post on the front page, but you also wanted to show links and excerpts to the previous five with the category ID 1, you could use code like this:

    $posts = get_posts('numberposts=10&offset=1&category=1');
    number of posts=10, but you want to “show previous five”.
    I’m confused. I just played with the code for someone wanting to have 3 posts, and then a list of 10 older. Which I did fine. I did a get_query post per page=3, and then the get_posts numberofposts13, offset=3. Which worked.
    Guess what I’m getting at is the text and the code don’t match and I don’t know who to notify, otherwise, I’m totally reading it wrong, and would like an explanation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get posts tag and codex question’ is closed to new replies.
Skip to toolbar