WordPress.org

Ready to get started?Download WordPress

Forums

Only current page shown when useing have_posts (2 posts)

  1. alagus
    Member
    Posted 3 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. alchymyth
    The Sweeper & Moderator
    Posted 3 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