I use paged and threaded comments with:
- 10 comments per page
- the last comment page first
- the newest comments first
If there are 21 comments total, the first page only contain 1 comment - the newest. How do i get the newest 10 comments always showing on the first page?
I'm using WordPress 3.0.3.
Edit: Upgraded to 3.1, the problem still exists...
Edit: Forgot to add the code I'm using. I use a callback for the listed comments, here goes:
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(); ?>" class="comment">
<?php if(function_exists('hkTC_comment_title'))
hkTC_comment_title($comment->comment_ID,'<strong class="comment-title">','</strong>');
?>
<?php comment_text() ?>
<span class="written-by">
Skrivet av:
<?php
$commentAuthID = get_comment(get_comment_ID())->user_id;
echo the_author_meta('first_name',$commentAuthID)." ";
echo the_author_meta('last_name',$commentAuthID);
?>
<em>kl. <?php echo get_comment_time('H.i'); ?>, den <?php echo get_comment_date('j F Y'); ?></em>
</span>
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>
</div>
<?php }
The hkTC_comment_title function is from this plugin that I'm also using: http://wordpress.org/extend/plugins/hikari-title-comments/ But that shouldn't mess with the number of comments I think.
Edit: This is my custom template used to display the page with the comments: http://123.writeboard.com/4x2m38ifvnkrct7l
