Forums
Home / Fixing WordPress / Adding Pages Blogs
(@jdoez)
9 years, 1 month ago
In my comments.php, I have added a function that makes only a certain number of comments appear in the comments section of a blog’s page ('per_page' => 20,). How do I add the functionality to go to the next page of comments? I tried adding
'per_page' => 20,
<?php next_comments_link( 'Newer Comments »', 0 ); ?>
or
<div class="navigation"><p><?php posts_nav_link(); ?></p></div>
to single.php
But, it did nothing. Am I going about this wrong?
Nevermind. I found my answer at http://bacsoftwareconsulting.com/blog/index.php/wordpress-cat/how-to-add-and-style-wordpress-comment-pagination-without-a-plugin/
(@jdoez)
9 years, 1 month ago
In my comments.php, I have added a function that makes only a certain number of comments appear in the comments section of a blog’s page (
'per_page' => 20,
). How do I add the functionality to go to the next page of comments? I tried adding<?php next_comments_link( 'Newer Comments »', 0 ); ?>
or
<div class="navigation"><p><?php posts_nav_link(); ?></p></div>
to single.php
But, it did nothing. Am I going about this wrong?