• We have a website that developed by third party vendor some times ago. Now we find out there is one features (Post Category) that could only show 10 lines in our website, while at back office (admin panel), the items are more than 10. I need to show all items. Where do i start to fix this? tia.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Hanspralon,
    Have you tried changing the setting for “Blog pages Show at most” ? This is in the Admin under Settings then Reading. I believe the default value is 10 but you can change it.

    Hope this helps ??

    Moderator bcworkz

    (@bcworkz)

    The query var that limits posts is called ‘posts_per_page’ (formerly ‘showposts’). It’s rather common for developers to override the backend setting for various reasons. It can be difficult to find where in someone’s code this happens, but knowing the query var name can help. You might see code like $wp_query->set('posts_per_page', 10 ); overriding the default. This is but one of many possible ways of doing this. Setting it to -1 would cause the query to return everything found.

    You might try using grep or an equivalent command to search through your theme and plugin folders for ‘posts_per_page’ or ‘showposts’ in all PHP pages. Any locations returned have the potential to be the problem code, but may not be. Good luck on your search!

    Thread Starter hanspralon

    (@hanspralon)

    thx DivByZRo and bcworkz. In my case bcworkz is the way ?? though it takes awhile to find the rite file to edit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Result limited to 10 items’ is closed to new replies.