I am running WP 2.0 and would like to show more than the 20 most recent comments in Manage/Comments. How do I expand this to say 100?
I am running WP 2.0 and would like to show more than the 20 most recent comments in Manage/Comments. How do I expand this to say 100?
Hello there!
If you want to change the default of 20 comments, you would have to change the two occurange of '20' in the file wp-admin/edit-comments.php
The first would be line 66
$offset = (int) $_GET['offset'] * 20;
and the second one is line 70:
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '0' OR comment_approved = '1' ORDER BY comment_date DESC LIMIT $offset,20");
Just change it to the desired number and it should work fine. :)
This topic has been closed to new replies.