500 post limit in Loop
-
Howdy,
I developed a simple page for a friend who does movie reviews to retrieve all his posts in a certain category and display them as a list. All was well until he went over 500 posts with that selected category. This used to work fine:
<?php $posts = query_posts('cat=3&orderby=title&order=asc&posts_per_page=-1'); ?>
Now nothing is returned and the rest of the template (that used to show the sidebar and footer) is never processed.
I have searched for a solution and found a number of suggestions using a custom query, none of those solutions are as simple as needed. For example https://www.ads-software.com/support/topic/259958 shows a custom query for category but it uses the category name and takes tags into account and is therefore tough to modify for what should be an easy query.
While it would be nice to fix this within the loop, I’d be happy to get some custom query advice, even a pointer to the list of fields in the posts table so I only drew the ones I needed (title, link).
Thanks!
Chris
- The topic ‘500 post limit in Loop’ is closed to new replies.