Multiple loopers: count issue

Hi!

I am running to a same issue over and over again: the number of displayed post in a looper, when there are multiple loopers on the layout or the page. In such scenario pagination doesn’t work. Since there is no “All posts” option, I have to choose some random high number which is expected to be high enough so it won’t be exceeded.

That seems like a very inefficient way of doing things, but the default number of posts is simply not enough, and it is a single number that affects all post types.

image

I like to create Layouts where data is sorted in some way. For example a Restaurant menu where various loopers are showing various categories such as “Appetizers”", “Side dishes” “Dessert” etc.

Thanks!

There’s an underlying safety and performance concern here. The way you get “All Posts” in WordPress is specifying -1 as your query number. The problem though is if you have a large number of posts in a given post type. If there was an option for “All” and someone chose that with a thousand posts in their DB, it would certainly crash and hit the memory limit. I know it might be annoying to have to enter some arbitrary high number, but it’s just safer than having an option for all items.