How to limit the number of comments per post?

Discussion in 'WordPress' started by KISS, Jun 11, 2010.

  1. #1
    Hello.

    I just can't find this information. I searched for it for like an hour, but still can't find out how to limit the number of comments per post. I tryed with two plugins, but they were so old, they did not work on my version.

    I guess i have to put a limit on a mysql query, but i can not find where. I only got it to show that there are less comments, but it still outputs them all. Maybe something to do with wp_list_comments function ...

    Please help :)
     
    KISS, Jun 11, 2010 IP
  2. KISS

    KISS Active Member

    Messages:
    135
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    I did it, hoorayy :) ;)

    i used $_comments=array_slice($_comments, 0, 5); in the wp_list_comments function in the comment-template.php file ;)
     
    KISS, Jun 11, 2010 IP
  3. lisamariemary

    lisamariemary Greenhorn

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Why do you want to limit the number of comments?
     
    lisamariemary, Jun 11, 2010 IP