Override Global Post limit on single page

Hello,

On this page: https://creativedesigns.mysites.io/about-cdl/

I have a looper provider set to show a custom post type (Team).
post_type=team&orderby=meta_value&meta_key=hierarchy&order=asc

My global setting for posts is 9 and I need to keep it that way.

I have 11 team members and that is likely to increase. I would like them all to show, not just the 9. Is there something I can put in the provider string to show all the posts and override the global setting?

Thanks.

Hey @zenzino,

Thanks for reaching out!

To show all the team members and override the global setting of 9 posts per page, you can add the posts_per_page parameter to your provider string. This parameter allows you to specify the number of posts to display, overriding the global setting.

post_type=team&orderby=meta_value&meta_key=hierarchy&order=asc&posts_per_page=-1

Setting posts_per_page=-1 ensures that all posts will be displayed, regardless of the number of team members and this will override the global setting.

Hope that helps.

Thanks @marc_a !

You’re the best!

You are most welcome @zenzino

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.