Forums

Loop displaying only 1 post (2 posts)

  1. dig1ty
    Member
    Posted 2 years ago #

    I am reading the sections on the loop at the codex and it works fine, it's just that it displays only 1 post. What could be the cause of this problem?

    Here is the code snippet - pastebin

  2. stvwlf
    Member
    Posted 1 year ago #

    1) Do you have a query_posts statement above the code you pasted in the pastebin that limits the # of posts displayed?

    2) Check your theme's settings - under Dashboard / Settings / Reading to make sure the # of posts per page is not set to one

    3) If those are OK, make sure there is more than one post available to display with the query you are running.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags