WordPress.org

Support

Support » Themes and Templates » Other queries on /page/* broken

Other queries on /page/* broken

  • 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(); ?>

    Any thoughts?
    Much obliged!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Other queries on /page/* broken’ is closed to new replies.
Skip to toolbar