Tip Details Add a Related Tip

Rate as: Positive Negative

Customize the number of comments shown in Wordpress blogs

Wordpress blogs show 20 comments per page by default, and there is no obvious way to change this number. If your blog gets a lot of comments, you'll probably want to increase this number so that you don't end up with pages and pages of comments. If you want to change the number of comments shown per page on your Wordpress blog, you can adjust this by editing a configuration file.

The file to be edited is called edit-comments.php and you'll find it in your wp-admin directory. Edit this file using your editor of choice and look for this line:

$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);

Change the value of 20 in this line to be however many comments you'd like to have show up per page. Save the file and your change should take effect immediately.
Rating: no ratings, 0 total Votes
Categories: wordpress blogs comments customization
Added: on Dec 17, 2008 at 10:12 am
Added By: an anonymous user
Searches: comment blog wordpress page number

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

turn off WordPress post revisions

100% positive, 0 comments
– Tip added by an anonymous user on Aug 31, 2008 at 2:08 pm

customized wordpress categories

no ratings, 0 comments
– Tip added by an anonymous user on Aug 19, 2008 at 1:47 pm

Install and Set up WordPress on your website

100% positive, 0 comments
– Tip added by an anonymous user on Feb 06, 2008 at 2:59 pm

Secure your wordpress blog

100% positive, 0 comments
– Tip added by an anonymous user on Feb 04, 2008 at 11:40 am

Speeding up Wordpress

Categories: blogs wordpress speed
100% positive, 0 comments
– Tip added by an anonymous user on Sep 23, 2007 at 4:42 pm

Using shortcodes in WordPress

no ratings, 0 comments
– Tip added by an anonymous user on Feb 03, 2009 at 11:12 am

Speed up your WordPress blog

Categories: wordpress blogs speed
no ratings, 0 comments
– Tip added by an anonymous user on Jan 30, 2009 at 10:23 am

Create your own customized wordpress theme

no ratings, 0 comments
– Tip added by an anonymous user on Nov 17, 2008 at 10:56 am

Change default blog passwords

no ratings, 0 comments
– Tip added by an anonymous user on Mar 13, 2008 at 1:01 pm

WordPress Plugins You Should Definitely Be Using

no ratings, 0 comments
– Tip added by an anonymous user on Mar 10, 2008 at 4:38 pm

Move the TextWrangler document drawer to the left

100% positive, 0 comments
– Tip added by an anonymous user 2 days, 21 hours ago

Setting ringtones on the Droid

100% positive, 0 comments
– Tip added by an anonymous user 4 days, 16 hours ago

Change file opening behavior in Coda

100% positive, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 8:09 am

Turn off old search suggestions in Windows 7

100% positive, 0 comments
– Tip added by an anonymous user on Nov 02, 2009 at 7:23 am

Adding subscribed calendars on the iPhone

100% positive, 0 comments
– Tip added by an anonymous user on Oct 29, 2009 at 8:53 am

Remove the OneNote icon from the taskbar

no ratings, 0 comments
– Tip added by an anonymous user 1 day, 15 hours ago

Get smooth page up and page down scrolling in Firefox

no ratings, 0 comments
– Tip added by an anonymous user 2 days, 17 hours ago

Change the Expose window higlight color

no ratings, 0 comments
– Tip added by an anonymous user on Nov 06, 2009 at 6:21 am

Turn on visual tab previews in Firefox 3.6

no ratings, 0 comments
– Tip added by an anonymous user on Nov 05, 2009 at 7:10 am

Run programs automatically when Windows 7 starts

no ratings, 0 comments
– Tip added by an anonymous user on Oct 30, 2009 at 1:05 pm