WordPress.org

Support

Support » How-To and Troubleshooting » Navigation weird problem

Navigation weird problem

Viewing 4 replies - 1 through 4 (of 4 total)
  • Twansparant
    Participant

    @twansparant

    I’m having the exact same problem.
    If I echo $wp_query->max_num_pages within the reverie_pagination function, it echoes 0 no matter what…

    Twansparant
    Participant

    @twansparant

    Got it, you should use:
    $wp_query = new WP_Query( 'cat=-16' ); instead of query_posts
    Because the $wp_query is called globally in the reverie_pagination function.

    WebWookie
    Member

    @sergefactor

    What version of Reverie was this? The links to the paste bins are empty now and I’m having similar issues.

    WebWookie
    Member

    @sergefactor

    It looks like I just had to escape the blog feed per these instructions…
    https://codex.wordpress.org/Pagination#Troubleshooting_Broken_Pagination

    Here is the code I used in the loop.php just wrap your loop with…

    <!-- Exclude News, In the News, and Press Releases category posts from Blog feed -->
    <?php if ( is_page('blog')) {
    query_posts($query_string . '&cat=-171,-56,-14');
    }
    ?>
    
    <!-- Loop goes here -->
    
    <?php endif; ?>

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Navigation weird problem’ is closed to new replies.