Hello,
This is my problem: I want to use pagination for posts and comments.
I have started to use keyvan, but I would like to put it on the last page of my post only (so readers don’t get distracted by the fun of the comments board). Anyway, I implemented Keyvan’s plugin and tried to simultaneously implement the code above that forces the comment_template to the last page. But I’m having trouble getting them to work together.
<?php if((1 == $numpages) || (get_query_var('page') == $numpages)) { comments_template(); } ?>
<?php if (function_exists('paged_comments_template')) paged_comments_template(); else comments_template(); ?>
This is what I came up with (it almost worked but the other comments pages disappear and go to the 1st post page):
<?php if((1 == $numpages) || (get_query_var('page') == $numpages)) {
if (function_exists('paged_comments_template')) paged_comments_template(); else comments_template();
} ?>
Don’t laugh too hard, I’m very new at coding (a little over a month self-taught).
Please help,
I know this is a layup for most of you out there.
Thanks in advance,
Mike