Is is possible to override the set # of blog posts to show per page (as defined under Reading Settings in the WordPress admin)? I want to make it so a custom loop that I am using will show an unlimited number.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
The argument that controls how many posts are shown in the query is posts_per_page
Also to note is that there is a bug in the 3.0 branch which prevents the -1 integer from displaying all posts. It is fixed in 3.1 but a workaround would be to use a very high number instead of -1 see: |
||||
|
Sure, change the query by adding
|
|||
|
|
|
Eileen is right but it's better to use arguments as an array |
|||
|
|