Displays comments, for a post of a post type that supports comments, based on a variety of parameters including ones set in the administration area.

learn more… | top users | synonyms

6
votes
1answer
2k views

Aggregate comments, with pagination

I want to build a page that would display all comments, regardless of which post they're attached to. I also want that page to be paginated, since it'll potentially have 10,000+ comments. I'm not ...
4
votes
2answers
191 views

Comment Walker vs. Comment Callback

I've been messing around with custom comments this week and I'm trying to figure out when I'd want to use a walker and when I'd use a callback... There's some things I can't quite figure out how to ...
4
votes
1answer
72 views

How can I see all of a post's comments on a single page as a reader, if pagination is enabled?

Is there an URL I can access, or an argument that can be passed, to disable pagination on the reader's side? The blog uses standard Wordpress comment pagination, i.e., http://example.com/2012/01/post-...
3
votes
1answer
34 views

comment_reply_link() not showing up

In functions.php I enqueue comment-reply and also define a callback function for use with wp_list_comments(): function theme_queue_js(){ if ( ! is_admin() && ...
2
votes
1answer
470 views

Exclude post_type from admin comments_list

I'm trying not to show comments from a certain custom post type int the comments list on the admin interface. I went to the "wp-admin/includes/class-wp-comments-list-table.php" and tried to play with ...
2
votes
3answers
301 views

How to get last comments but not from admin (or other specific user role/capability)?

I'm using get_comments to show lastest comments i.e.: <?php global $comments, $comment; $comments = get_comments( array( 'number' => '5', 'status' => 'approve', 'post_status' => '...
2
votes
1answer
544 views

Comment `Reply` link doesn't work if comments are loaded from ajax

I am writing a plugin that displays custom home page that is in fact only one post with comments. The first time home page is displayed by the initial call by php. Then user can click a menu button to ...
2
votes
3answers
101 views

Is it possible to make wp insert last comment onto another page

If we set wp to break comments into pages after X nr of comments and we have X+1 comments , wp only shows that last comment instead of showing X and move the comment from bottom onto the next page. ...
2
votes
2answers
1k views

How to call wp_list_comments() with callback outside the loop

the template function as a callback argument of wp_list_comments function, and the template function takes three args:$comment, $args, $depth, like the template function that defined in the theme ...
1
vote
2answers
158 views

Limit comments displayed on basis of user_id

How can i limit comments displayed on the page - reviews by author_id. Lets say that the author_id to limit to is in variable $author_id_to_limit. Please tell me how to hook the function to do so. ...
1
vote
2answers
237 views

How to use a different database to list and manage comments in the backend

I need to make Wordpress use another database (not the one specified in wp-config site-wide) on the "Comments" admin backend. I then must be able to edit, approve, delete etc. comments as usual. The ...
1
vote
1answer
188 views

Compact pingback list with favicons

On a blog with pingbacks and trackbacks (pings) enabled I want to show just a link with link text and a favicon of the external site in a compact list: no date, no text. How can I do that?
1
vote
1answer
99 views

Passing arguments to wp_list_comments callback function

One can customize single comment markup using the callback argument in wp_list_comments like this: $args = array( 'callback' => 'my_callback', 'avatar_size' => 48, 'type' => 'comment' ); ...
1
vote
2answers
281 views

Can wp_list_comments output into variable?

Is there any way how to output wp_list_comments() into a variable? Something like $output = wp_list_comments(array('reverse_top_level' => false ), $comments); I am writing a plugin and it would ...
1
vote
1answer
704 views

Load comments.php template outside the post loop

I'm loading a post via ajax and outputting using $post = get_post( $post_ID ); Is there a way to load the comments.php template after I've output my post? I tried using: global $withcomments; $...
1
vote
2answers
1k views

How to load javascript file on homepage in Wordpress in order?

I am using a quicktags plugin, which was not loading on the home page, now it does, but it does it on the wrong place. How can I solve this? I want the quicktags.min.js file to load first, rather ...
1
vote
1answer
1k views

Customize comment list markup

While creating a new theme, we'll have to customize the comment flow. For doing so there are two functions: wp_list_comments() and get_comments(). I am not very sure how to style the inner elements ...
1
vote
1answer
225 views

What is comment_karma?

doing a var_dump on $comment object, I mentioned there is a comment_karma property. What is that?
1
vote
1answer
47 views

Commenter should see only his comments in wordpress

I'm building a site for a research and my participants will be all logged in to use the site. I would like to make these participants able to see only their own comments, so other users' comments will ...
1
vote
1answer
184 views

$reverse_top_level works the opposite way according to Codex?

The Codex for wp_list_comments states $reverse_top_level (boolean) (optional) Setting this to true will display the most recent comment first then going back in order. For my it is actually the ...
1
vote
1answer
637 views

ol children instead of ul children

I've created a new walker class to display a custom layout when using the wp_list_comments(); function and this is perfect, the only thing is that all replies to one comment are listed in a <ul> ...
1
vote
2answers
3k views

How to call wp_list_comments() outside of the comments template?

I'm simply typing wp_list_comments() in page.php but nothing is shown. But if I put the comments_template() tag there, then the comment form, comments and pings are shown. Why is that, why can't I use ...
1
vote
1answer
142 views

How to get comment id in callback function?

I am trying to get the comment ID in the custom callback function that I can use in wp-list_comments. Any help on how to do this? Thanks in advance I am using wp_list_comments as: ...
1
vote
0answers
116 views

Display date and time in comments

I use wp_list_comments(); to display a list of comment in WordPress. But it does show the format characters instead of the correct datetime. How can I fix this bug? Thank you.
1
vote
0answers
156 views

wp_list_comments renders incorrectly nested <ul>

I'm trying to figure out how wp_list_comments works. So I made the simplest possible callback just to see the structure of the result: function custom_comments_callback( $comment, $args, $depth ) { ...
0
votes
2answers
320 views

How to output comments number of a post per day?

I have a question about the comment numbers in a post... For now, I can output the total number of a comment inside a post outside the loop. That's cool enough, but I want to get show the comment ...
0
votes
1answer
186 views

Change HTML Produced by wp_list_comments()

I am developing a WordPress theme for which I would like each comment's timestamp wrapped in in a <span> element for the sake of styling it with CSS rules. However, the wp_list_comments() ...
0
votes
1answer
1k views

show list of latest comments for each post in a loop

I want to show the last 5 comments for each post on my index page loop of posts. What Im using now is only showing the same comments for every post. How should I set this up and how can I add an ...
0
votes
1answer
413 views

How to get comments other than using wp_list_comments?

I'm sure you guys are wondering, "why the hell?" - basically it is because it does not work with a plugin by NextSCRIPTS that pulls comments from facebook. When I'm in the admin panel I see the ...
0
votes
1answer
44 views

Custom comment link

How can I customize my comment link without modifying comment-template.php file line 676: $link = $link . '#comment-' . $comment->comment_ID; I would like to get the same link just little ...
0
votes
1answer
39 views

Where are comments coded when using custom theme?

I am having issues displaying both the default comment system and a plugin comment system in Wordpress. Comments are enabled via Wordpress settings, comments are being made somehow via spam bots, but ...
0
votes
1answer
1k views

Enable nested comments in Theme

I am trying to enable nested comments in my theme. I am new to all this stuff but I am doing my best. This is the code that I have in my comments.php <?php if ( get_comment_pages_count() > 1 &...
0
votes
1answer
98 views

How to get the number of pages when paginating comments?

I want to display threaded comments via ajax using pagination. If I use this code to display comments for page 1 how can I know if there is something more to be displayed on page 2? If there is ...
0
votes
1answer
2k views

How does “Your comment is awaiting moderation” work?

The question here is if someone could help me to make the comment "Your comment is awaiting moderation" work correctly for custom page. It works ok for standard Wordpress page but not for my own page. ...
0
votes
1answer
485 views

How to get particular data from wp_list_comments outside the loop?

I need some help,very much new to wordpress. I need only comment title and comment date from wp_list_comments function in my post, calling from outside loop, after declared $postid as global variable....
0
votes
3answers
967 views

Embedding Youtube video on comments

In my posts, you can embed a video of Youtube by adding the link to the post. You don't have to do anything beside that. On my comments, I can't do the same thing. Is it possible to embed Youtube ...
0
votes
2answers
659 views

<?php wp_list_comments(); ?> is it possible to have the full code instead in the comments.php page

I strongly need to edit some parts of the comments left by the users, I want to add a link to the commenter's author.php page if he/she is a registered user by placing a text link somewhere next to ...
0
votes
1answer
214 views

Comments numbering on multiple pages

I have a problem with the numbering of my comments when they extend to more than one page. On the new page the numbering starts from again from 1. Also, on page 2 the pingbacks/trackbacks don't appear ...
0
votes
1answer
115 views

Hide Trackbacks/Pingbaks if none exists

I managed to get my comments numbered and then to separate the comments from the pingbacks and trackbacks. The only problem I have now is that I don't want to show the title of this section (where the ...
0
votes
1answer
203 views

Enable Recent Comments widget to display comments on attachment posts

Is it possible to hook into the default Recent Comments widget to enable it to display comments for attachment posts? If so, how?
0
votes
1answer
868 views

Get the latest comment from a custom post type where depth = 1?

Happy new year everyone. I've been struggling with this one for a while. I need to get the latest comment from a custom post type, but ignore any child comments i.e. only look at comments with a ...
0
votes
1answer
1k views

customizing TwentyEleven comments template

Typically I don't utilize comments on my sites, however I'm using the comments functionality as a sort of live-feed testimonials page. To do this, I've borrowed comments.php and the comments portion ...
0
votes
1answer
13 views

How to get the 5 most recent comments and each comment 5 most recent replies (children)

I want to get the 5 most recent comments and each comment's 5 most recent replies (children) in descending order. With the following code I can get the 5 most recents comments but it won't distinguish ...
0
votes
1answer
39 views

Posting a comment redirects admin/users to blank page

I have looked a lot on this problem on forums and tried out a few of the solutions but nothing seems to work for me. When I try to comment here: http://www.chicitout.co.nf/crochet-lace-skater-dress/ ...
0
votes
2answers
32 views

How Can I display the Current Logged-In User's Comment at the Top of the Comments Section in Wordpress?

What I'm trying to do is show the current logged in user's comment at the top of the list in the comments section in Wordpress on any given post. I don't care if it is just duplicated at the top and ...
0
votes
1answer
58 views

Paginated Comments “reply” does not work!

I use plugin Paginated Comments. I edit template and CSS in paginated-comments.php but "reply" does not work. "reply" does not appear at all. http://i.imgur.com/ieIeadO.jpg (There should be a button ...
0
votes
0answers
31 views

Comment Reply Name

I have a little problem with my comment list. I want to display a comment reply name like You Tube. This means if someone reply to a comment, than shut be displayed on top of the comment, the name ...
0
votes
0answers
24 views

Comments page id wp_list_comments

Under post i want to display last five comments. At next comment page or after click button "show more comments" I want to display all comments or set quantity comments to display. How can i do it? ...
0
votes
0answers
13 views

Limiting Comments Displayed to posts posted by particular author

I am on Page review. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare $perm_author_id and comment_author( $...
0
votes
0answers
18 views

How to use custom_query_var along with post_id for comments

I have introduced a custom_query_variable - brand in my permalink using the below function. function add_query_vars_filter( $vars ){ $vars[] = "brand"; return $vars; } add_filter( 'query_vars', '...