Comments on: How to Create a Comments Central Page Template in WordPress http://www.themelab.com/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 https://wordpress.org/?v=4.6.1 By: Farfisa http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-18691 Sun, 19 Feb 2012 09:05:13 +0000 http://www.themelab.com/?p=1552#comment-18691 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 http://codex.wordpress.org/Template_Tags/get_comments_number , but cannot get it to work 🙁

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

]]>
By: Omar http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13535 Thu, 25 Feb 2010 01:45:12 +0000 http://www.themelab.com/?p=1552#comment-13535 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 http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13531 Thu, 25 Feb 2010 01:02:57 +0000 http://www.themelab.com/?p=1552#comment-13531 Learn something new every day. Will take a good look at that function, thanks Ptah 🙂

]]>
By: Ptah Dunbar http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13509 Wed, 24 Feb 2010 20:25:04 +0000 http://www.themelab.com/?p=1552#comment-13509 Exactly, _wp_get_comment_list() returns an array of all comments so from there, you would simply run a foreach loop.

]]>
By: Leland http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13506 Wed, 24 Feb 2010 20:01:42 +0000 http://www.themelab.com/?p=1552#comment-13506 Hey Kim, awesome. Let us know how it works out once you implement it.

]]>
By: Leland http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13505 Wed, 24 Feb 2010 20:01:10 +0000 http://www.themelab.com/?p=1552#comment-13505 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 http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13491 Wed, 24 Feb 2010 16:59:27 +0000 http://www.themelab.com/?p=1552#comment-13491 Definitely some things here that I want to implement on my photoblog once I get it converted to WordPress. Thanks!

]]>
By: Ptah Dunbar http://www.themelab.com/how-to-create-a-comments-central-page-template-in-wordpress/#comment-13488 Wed, 24 Feb 2010 16:34:14 +0000 http://www.themelab.com/?p=1552#comment-13488 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’ );

]]>