WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Only current page shown when useing have_posts (2 posts)

  1. alagus
    Member
    Posted 6 years ago #

    I have the same problem as in this post:
    http://wordpress.org/support/topic/only-current-page-shown-with-use-of-the-loop

    Does anyone know about the solution?

  2. Michael
    Forum Moderator
    Posted 6 years ago #

    use query_posts('cat=0&posts_per_page=-1'); before if(have_posts()):

    http://codex.wordpress.org/Function_Reference/query_posts

Topic Closed

This topic has been closed to new replies.

About this Topic