WordPress Plugins > WP-CommentNavi
paging is not working
GaMerZ:
I ask you to try on the default theme and the default WordPress comment pagenavi to see IF IT WORKS in the first place. If not, there is something wrong with your theme and you have to change a new theme or correct it. Because I have no problem using it myself on the default theme.
Also, I think you place the code wrongly. You are suppose to place the code AFTER the comment loop. PLEASE read the readme.html and look at the tabs on top.
SimplyTragic:
I am having the same problem. I tried your plugin for the default theme and it workd perfectly, but when I use it in my theme, it doesn't. I think I"m missing something... I hope you can help.. Seems to only work with the wp list comments tag...
here is the link to my site http://paintedmemories.pixelfx.org/2009/07/lemon-lime/#comments
comments.php code
--- Code: ---<?php if ( post_password_required() ) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<p></p>
<h3 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?> <?php if ( comments_open() ) : ?>
On
<u><?php the_title(); ?></u> <?php endif; ?> </h3>
<p></p>
<?php if ( $comments ) : ?>
<?php foreach ($comments as $comment) : ?>
<div class="comment">
<id="comment-<?php comment_ID() ?>">
<div style="float: left; padding: 5px;">
<?php echo get_avatar( $comment, 50, 'http://i65.photobucket.com/albums/h220/doubtfan82/pmicon.png'); ?> </div><!--END AVATAR-->
<div class="commenter_info">
<img src="/wp/wp-content/themes/lemon_lime_gwen/Images/right.gif" alt="" /> <?php comment_author_link() ?> <?php _e('said'); ?> on:
<br /><?php comment_date() ?> @ <?php comment_time() ?>
</div><!--END COMMENTER INFO-->
<?php comment_text() ?>
</div><!--END COMMENT-->
<br />
<?php endforeach; ?>
<?php if(function_exists('wp_commentnavi')) { wp_commentnavi(); } ?>
<?php else : // If there are no comments yet ?>
<?php endif; ?>
<p></p>
<?php if ( comments_open() ) : ?>
<h1 id="postcomment"><?php _e('Leave a comment'); ?></h1>
<div class="sidebox">
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php
echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="35" tabindex="1" />
<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="35" tabindex="2" />
<label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="35" tabindex="3" />
<label for="url"><small><?php _e('Website'); ?></small></label></p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
$mcsp_info = math_comment_spam_protection();
?> <p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="35" tabindex="4" />
<label for="mcspvalue"><small>Spam protection: Sum of <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?'
?></small></label>
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>
<?php endif; ?>
<?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?>
<p><textarea name="comment" id="comment" cols="75%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php echo attribute_escape(__('Submit Comment')); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<p></p>
<?php live_preview() ?>
</div><!-- END SIDEBOX-->
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
--- End code ---
GaMerZ:
It will only work with wp_list_comment. http://codex.wordpress.org/Template_Tags/wp_list_comments
puttee:
Hi,
I have also a problem to get pageing working correctly on single pages.
Paging is working for comments in posts. For expample here: http://www.miranda-fusion.de/2009/06/19/miranda-fusion-2-0-3-final-release/
But it is NOT working for comments on static pages like this for example: http://www.miranda-fusion.de/download/
When you click there on a pageing link, you get an error: "Invalid File ID or File Name."
The comments.php template includes the <?php wp_list_comments('callback=custom_comment'); ?> function.
Is there an explanation for that? Hopefully you can help me
thx in advanced
puttee
GaMerZ:
Does the default comment navigation works?
--- Code: --- <div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
--- End code ---
Does the plugin work on the default theme?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version