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: http://codex.wordpress.org/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)?
- The topic ‘Paging while using a custom select query’ is closed to new replies.