• On my site comments are displayed in index/loop page as well as single pages. Sometimes the post pagination will display comments pagination instead.

    If any of the post in one page have comments pagination (i.e. have enough comments to trigger pagination), the posts’ pagination will be replaced with comments pagination instead (even the ol’s has wp-paginate-comments class on it).

    My template is like this (simplified),
    loop.php:

    <?php while ( have_posts() ) : the_post(); ?>
    	<?php require 'review.php'; ?>
    <?php endwhile;?>
    wp_paginate();

    review.php

    <?php if(function_exists('wp_paginate_comments')) {
    	wp_paginate_comments();
    } ?>

    If I remove the wp_paginate_comments();, and refresh the page, the problem disappears.

    However I would like to have both pagination at the same time.

    Thanks for developing the plugin!

    http://wordpress.org/extend/plugins/wp-paginate/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Paginate] wp_paginate() mixed up with wp_paginate_comments()’ is closed to new replies.