Using my own custom [detailed] query – how to have paging?
Using the information here:
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.
- The topic ‘Using my own custom [detailed] query – how to have paging?’ is closed to new replies.