Using my own custom [detailed] query – how to have paging?
-
Hi,
Using the information here:
https://codex.www.ads-software.com/Displaying_Posts_Using_a_Custom_Select_Query
I’ve successfully created a detailed query that searches through all posts and returns them. Thing is, I’m using WP for a car listings site and there’s hundreds of cars on there initially (growing quickly to thousands).
My query works perfectly but shows all x hundred results on the one page. I’m hoping there’s a simple way to re-introduce WP paging?
Just for brevity I’m using the get_results to run my query as follows:
$pageposts = $wpdb->get_results($querystr, OBJECT);
Many thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Using my own custom [detailed] query – how to have paging?’ is closed to new replies.