Comments on: How to Create a Comments Central Page Template in WordPress We build High Quality, Good Looking Premium WordPress Themes that are Easy to Use and ready for just about anything. Tue, 28 Jun 2016 19:01:53 +0000 hourly 1 By: Farfisa Sun, 19 Feb 2012 09:05:13 +0000 Hi Leland,
This is great for my wife’s site. She’s a writer.
I’ll go to make it fo her. Very handy.

I found your page in my search for a little trick, but seems to be not used… but I think it’s an handy trick wich should used on many site who carry a testimonial page, for example. I also presum it’s an easy snippet to write but I’m not a php king…
It’s: grabing the comments_count/number from the testimonial page (wich is a page, not a post), and print it into the sidebar.

I turn around things like , but cannot get it to work 🙁

Do you think you can help me please?
I’m using Sandbox theme.

By: Omar Thu, 25 Feb 2010 01:45:12 +0000 Great tutorial Hafiz!

And if I’m not wrong this is the first guest post? if so woot!
Maybe I’ll be next 😛

By: Hafiz Rahman Thu, 25 Feb 2010 01:02:57 +0000 Learn something new every day. Will take a good look at that function, thanks Ptah 🙂

By: Ptah Dunbar Wed, 24 Feb 2010 20:25:04 +0000 Exactly, _wp_get_comment_list() returns an array of all comments so from there, you would simply run a foreach loop.

By: Leland Wed, 24 Feb 2010 20:01:42 +0000 Hey Kim, awesome. Let us know how it works out once you implement it.

By: Leland Wed, 24 Feb 2010 20:01:10 +0000 Hey Ptah, glad you found it useful. I was actually thinking of implementing a similar page here too because I think it’s a good way to “reward’ good commenters.

And thanks for the tip about the raw SQL queries. I’m assuming that could essentially replace any instances of code like this?

$sql = "SELECT p.*, ..."; // and so on
$results = $wpdb->get_results($sql);

By: Kim Parsell Wed, 24 Feb 2010 16:59:27 +0000 Definitely some things here that I want to implement on my photoblog once I get it converted to WordPress. Thanks!

By: Ptah Dunbar Wed, 24 Feb 2010 16:34:14 +0000 Great idea, I might implement something like this for my site.

Just an FYI: instead of doing raw queries, try using this:

include ( ABSPATH . ‘wp-admin/includes/template.php’ );
_wp_get_comment_list( ‘approved’, false, 0, 20, 0, ‘comment’ );