Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Im trying to display latest comments from all the post on a page named comments, now im able to use <?php wp_list_comments('per_page=25', get_comments()) ?> and it gets all the comments but when I try to use <?php get_paginate_comments_links() ?> nothing shows even the next and previous buttons dont show, what am i doing wrong?

This is my current code, any help is appreciated

<?php wp_list_comments('per_page=5', get_comments()) ?> 


              <div class="navigation">
              <?php get_paginate_comments_links(array() ?>
<?php previous_comments_link() ?>
<?php next_comments_link() ?>
</div>
share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I cannot find that function in source and also not sure about your code nesting there.

There is paginate_comments_links() function. Usage is around this:

if ( get_option( 'page_comments' ) )
    paginate_comments_links();
share|improve this answer
    
Rarst is correct, there's no such function, only paginate_comments_links ..(ie. minus the get_ part).. –  t31os Jan 21 '11 at 14:59
    
Also the OP might note he's got a syntax error in his pasted code above on line 5 @ <?php get_paginate_comments_links(array() ?> –  Zack Jan 21 '11 at 15:52
    
worked great, thanks –  Jeremy Love Jan 21 '11 at 20:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.