How to disable pagination in query for particular pages
-
Title is pretty self explanatory. I have a custom template “taxonomy-custom.php” for custom taxonomy, and I want the $wp_query to get all posts from that taxonomy, not just the number set by “Blog pages show at most” in Reading settings.
What is the simplest way how to do that?
I don’t want to overwrite the $wp_query with new query without max post restriction, as I don’t like the idea of one useless query. Rather I’m looking for a way how to change the original taxonomy query to show all posts at once.
- The topic ‘How to disable pagination in query for particular pages’ is closed to new replies.