Paging while using a custom select query
-
I need to use a custom search query on my index.php page (I just display the posts that have a special value in a special custom field). I used this approach: https://codex.www.ads-software.com/Displaying_Posts_Using_a_Custom_Select_Query to implement it.
I just have a problem with paging. It displays all the posts from the query. How do I add default wordpress paging to the query (so that it shows only 5 – or whatever else is defined in WP – posts and “prev”, “next” buttons)?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Paging while using a custom select query’ is closed to new replies.