Comments pagination not showing
-
Hi
I just installed WP-Paginate, thanks for this great plugin
I’m trying to make it work for comments pagination.
So i replaced in comments.php this piece of code:
previous_comments_link( __( '<span class="meta-nav">←</span> Commentaires plus anciens', 'Nexus' ) );
by:
if(function_exists('wp_paginate_comments')) { wp_paginate_comments(); }
everywhere there was a call to previous_comments_link and next_comments_link.
Unfortunately it doesn’t work…
This is my code now:
`<?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // Are there comments to navigate through? ?>
<div class=”comment_navigation_top clearfix”>
<div class=”nav-previous”><?php /* previous_comments_link( __( ‘<span class=”meta-nav”>←</span> Commentaires plus anciens’, ‘Nexus’ ) );*/ if(function_exists(‘wp_paginate_comments’)) {
wp_paginate_comments();
} ?></div>
<div class=”nav-next”><?php /* next_comments_link( __( ‘Commentaires plus récents <span class=”meta-nav”>→</span>’, ‘Nexus’ ) ); */ if(function_exists(‘wp_paginate_comments’)) {
wp_paginate_comments();
} ?></div>
</div> <!– .navigation –>
<?php endif; // check for comment navigation ?>`I used Theme Nexus
- The topic ‘Comments pagination not showing’ is closed to new replies.