2012-07-28

ideawu’s Paged Thread Comments Plugin

Views: 8093 | 3 Comments

ideawu’s Paged Thread Comments, this plugin will not load all comments into memory, it will use MySQL’s LIMIT.

Download

Install

Edit you theme files,

1. Replace <?php comments_template(); ?> with

<?php
if(function_exists('wptc_comments_template')){wptc_comments_template();}
else{comments_template();}
?>

2. Add pagination numbers

add this code to the comments.php file where you want the pagination numbers to be shown:

<?php if(function_exists('wptc_comments_pages')): ?>
	<p class="wptc_comments_pages"><?php wptc_comments_pages(); ?></p>
<?php endif; ?>
Posted by ideawu at 2012-07-28 00:36:01

3 Responses to "ideawu’s Paged Thread Comments Plugin"

Leave a Comment