Languages: English • 日本語 中文(简体) • zh-cn:paginate_comments_links (Add your language)
Generate a new way to list the paged comments in the comment template. Instead of using Previous or Next Comments links, it displays a full list of comment pages using numeric indexes.
This is probably the most efficient way to paginate comments in WordPress 2.7 since it allows the users to select wich comment page wants to visit instead of clicking trough every single page using the next/prev links.
1 2 3 ... 10 Next >>
<?php paginate_comments_links(); ?>
Needs Further Completion
'base' => add_query_arg( 'cpage', '%#%' ), 'format' => , 'total' => $max_page, 'current' => $page, 'echo' => true, 'add_fragment' => '#comments'
See Function_Reference/paginate_comments_links for further information and some usage examples.
The function prints several css classes for further CSS styling:
.page-numbers .current .next .prev
<span class='page-numbers current'>1</span> <a class='page-numbers' href='http://www.site.com/post-slug/comment-page-2/#comments'>2</a> <a class='next page-numbers' href='http://www.site.com/post-slug/comment-page-2/#comments'>Next »</a>
http://www.lagzero.net/2008/12/descarga-el-parche-de-gta-iv-para-pc-gta-iv-pc-v1010/#comments
The following code uses this function to create the Comments Pages index in the Default Theme's comments.php:
<div class="navigation"> <?php paginate_comments_links(); ?> </div> <ol class="commentlist"> <?php wp_list_comments(); ?> </ol> <div class="navigation"> <?php paginate_comments_links(); ?> </div>
Since: 2.7.0