Everytime i go past page one on the pagination I click on my comments and its takes me to the page but no comments show up, i have to click older post to get the comments to appear but on page 1 it takes me right to the comments. Im not sure what the problem is but here is my code, any help is greatly appreciated.
this is what i have in the page
<?php wp_list_comments('per_page=23&callback=mytheme_comment', get_comments()); ?>
<div id="paginati"><?php paginate_comments_links(); ?></div>
and this is what i have in the functions, am i missing something?
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>">
<div class="comment-author vcard">
<div id="comments-post-title"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php echo ( get_the_title($comment->comment_post_ID) ) ?></a></div>
<div id="comments-post-author"><?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?></div>
<div id="comments-post-date"> on <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s'), get_comment_date()) ?></a></div>
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php echo get_avatar($comment,$size='170',$default='<path_to_url>' ); ?></a>
</div>
</div>
</li>
<?php
}
per_page=23. The issue is that you have a link to a second page when it's not needed so there must be something throwing off the result ofpaginate_comments_links(), do you have any plugins installed that interact with comments? (tried another theme to rule out a theme issue?) – t31os Feb 10 '11 at 15:08