Having different number of looper items in a component and blog items per page

I have a looper that is built in a component, which I’d like to show more items than is set in Settings > Reading > Blog pages show at most…. I’ve been using the solution at this post, which typically works as expected. However, it’s not working at this site. Is there something that I need to do differently to make that work within a component?

Hello @andylinde,

Thanks for writing to us.

To help you with your concerns, we need to check your settings, I would request you please share the admin login details meanwhile I would suggest you troubleshoot a few of the common issues before we investigate your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

I’ve attached the login info in a secure note. I’ve also performed the common troubleshooting steps. Let me know if you have any questions.

Thank you!

Hello @andylinde,

It seems that you have set the Looper as query string and you have not added the posts_per_page argument in your query, just because it is taking the posts per page from the WordPress —>Settings —>Reading —>Blog pages show at most

Please add this parameter to your query to set the post count posts_per_page.

Complete query string.

 post_type=staff-bio&orderby=title&order=ASC&posts_per_page=20&tax_query%5B0%5D%5Btaxonomy%5D=staff-department&tax_query%5B0%5D%5Bfield%5D=slug&tax_query%5B0%5D%5Bterms%5D={{dc:p:content.department}}

I have added the posts_per_page value as 20. You need to change it as per your design.

Hope it helps
Thanks

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