After fighting pagination for a few days, it works, but presented a new, strange problem.
On /page/* of a custom post type, all other queries are broken.
The page itself has 3 queries (schedule, news items (pagination), highlighted item).
I isolate each query:
$temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); /loop/ <?php $wp_query = null; $wp_query = $temp;?> <?php wp_reset_postdata(); ?> <?php wp_reset_query(); ?>
- The topic ‘Other queries on /page/* broken’ is closed to new replies.