WordPress.org

Ready to get started?Download WordPress

Forums

Pagination error... when use query_posts() ?? (3 posts)

  1. usuario
    Member
    Posted 7 years ago #

    Well... when I tried to use the query_posts('post_per_page=5') ... it shows only 5, ok, ... but the next and previous pagination link, just doesn't work... when I press... It reloads the page again with the same article listing. Sometimes It just show one different article but all the same, or It just get mess up with the number of the pages... =S

    What's wrong?? Can't we use this query and have the pagination working?? =/

  2. subtype
    Member
    Posted 7 years ago #

    I have the same problem.

  3. declension
    Member
    Posted 7 years ago #

    I've just run into this with php query_posts('cat=-##');

    Has anyone found a solution?

    UPDATE
    Doh. Found my answer in a little detail near top of the query_posts Codex page that's mentioned once and then completely ignored further down. Make sure to read the last bit of the Usage section closely.

Topic Closed

This topic has been closed to new replies.

About this Topic