How to add pagination on “All Locations” and “All Categories” pages?
-
I noticed that pagination isn’t working on the “All Locations” and “All Categories” pages. Although there’s an option in the admin panel to adjust the number of items displayed per page, it has a limit of 100. This means that if you have 500 locations, only the first 100 will display, with the remaining 400 never being shown due to the lack of pagination.
In the file located at “wp-content\plugins\directorist\includes\model\ListingTaxonomy.php”, I found that you can increase the limit by modifying the “cat_per_page” and “loc_per_page” array elements. However, this causes all items to appear on a single page.
I have 10000+ locations and want to display 20 locations per page with pagination for the rest, how can I achieve this?
—–
I have another question. I have locations organized by Countries, States, and Cities. Is it possible to display only the Countries on the “All Locations” page, and when someone clicks on a Country, it shows its States on a separate page? Then, when someone clicks on a State, it displays its Cities, and only when someone clicks on a City will the Listings be shown?
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.