Posts Per Page

A quick tip to avoid potential confusion while using WP_Query() and have_posts() in a Loop.
If WordPress is setup to display ‘n’ number of posts per page, the Loop will not return more than ‘n’ number of results, unless the posts_per_page pagination parameter is set to -1 to show all posts. Hope this helps.

Leave a comment