Comments allow your website's visitors to have a discussion with you and each other. When you activate comments on a Page or post, WordPress inserts several text boxes after your content where users can submit their comments.

learn more… | top users | synonyms (1)

2
votes
1answer
198 views

edit_comment capability for subscriber

I have given my site's subscriber role the following permissions (unserialized DB-query): [subscriber] => Array ( [name] => Reader [capabilities] => Array ( ...
1
vote
0answers
28 views

Number/ Position of a Comment

Does anyone know a good way to get the count number or position of a comment under a post? In the known comment array there is only the related_post_ID not the relative number in the affected post. ...
0
votes
1answer
101 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 ...
2
votes
1answer
161 views

“Allow Comments” box cannot be checked

I've registered a custom post type, ensured that 'supports' has 'comments', and comments are allowed on new posts under settings -> discussion. I do see the check boxes for allow comments and allow ...
0
votes
1answer
56 views

different levels of nested comments per page

I am working on a wordpress site that usually allows three levels of nested comments. But I would like for (at least) one specific page to allow only one level of comments => no nesting. How can I do ...
0
votes
1answer
39 views

Wordpress is adding <!— page-who-we-are.php --> above html

Wordpress is adding this comment above all HTML on my site which is causing problems in IE in which the site won't render properly at all. How do I stop WP adding this? Tried disabling all plugins ...
3
votes
1answer
198 views

Deep customization of the comment form?

I've been handed over a design to translate into WordPress plugin & theme. My question is regarding building a custom comment form. The design used some custom scripts on the comment submit ...
2
votes
1answer
119 views

Hook to edit an column on comments screen?

At the moment I'm doing add_filter("manage_edit-comments_columns", function($columns) { unset($columns["author"]); $columns_one = array_slice($columns,0,1); $columns_two = ...
1
vote
0answers
86 views

Incorrect redirection after commenting on custom type

I use custom post type, and when users make a comment on page www.mysite.com/custom-type/2013/01/20/post-name/ they are redirected to www.mysite.com/2013/01/20/post-name/#comment-2231 [e.g. without ...
2
votes
1answer
333 views

get recent comments of a particular category

I am using get_comments('status=approve&number=5') to display recent comments in my wordpress sidebar. I need to display the recent comments of a particular category. How to do this?
0
votes
1answer
371 views

Make email not required comments.php

I need to edit my comments.php to make emails NOT required. I've attached my code below, I understand that I need to get rid of $req and $aria_req from my email field, but as the site is live I don't ...
0
votes
0answers
29 views

Custom Pagination for a Page with Comments [duplicate]

Possible Duplicate: Pagination not working with custom loop Hello everybody and good even. The Problem: I have a Page where the comments are listed like the posts a displayd in a ...
1
vote
1answer
87 views

Polls with respective comments?

I am using wp-polls plugin. It's working fine. Instead I need some more things in this which are : I want to use comments with each poll. (I think this can be possible when adding A New Poll, A New ...
0
votes
1answer
272 views

Allow admin roles to add images to comment replies

this may be a step too far but I publish occasional tutorials on my personal blog and sometimes in comments get asked questions where an image would be very helpful to include as the answer. I've done ...
2
votes
1answer
721 views

Wordpress admin bar showing pending comments which cannot be selected or modified after deleting parent page

My Wordpress admin interface shows there are 4 pending comments, but I've already approved three and deleted one of them via Disqus comment moderation page, but the page they were posted on was later ...
2
votes
1answer
913 views

Show Custom Comment Fields when editing in admin

I'm using the Custom Comment plugin to add custom fields to my comments. This plugin lets you define more fields for comment to let your visitors include their facebook, twitter and ... in their ...
1
vote
1answer
92 views

Log in link not showing, Comment Issue

We want user to register and then comment. So we, Checked the option of "Anyone can register" as true. Checked the option of "Users must be registered and logged in to comment" as true. Now, the ...
0
votes
1answer
41 views

Repositioning 'Reply' Link in Comments

I'm calling my comments the ol' fashion way: <?php wp_list_comments('avatar_size=60'); ?> I would like to be able to position the 'Reply" link where I choose. Right now, it defaults to the ...
0
votes
1answer
78 views

Passing user meta through comment form

I want to create a hidden field in the user comment form storing the logged in users info (already created a custom field at registration) so I can pass it to the comments section to display on the ...
0
votes
2answers
88 views

Recent comments per tagged post?

Could you please help me with some code to get all recent comments for posts that are tagged with for example "XYZ"? Thanks in advance, you guys are great!
0
votes
2answers
392 views

I don't have comments.php… how do I customize my comment fields

My page in question is here. I have tried to add a comments.php to my custom theme so I can remove the website field and so I could edit the default values of the fields and remove the labels. When I ...
0
votes
1answer
53 views

How do I get the comments section to show up?

My theme does not seem to be showing me the comments section, this is the PHP code I have in my index.php file inside the template folder <!-- Start the Loop. --> <?php get_header(); ?> ...
0
votes
1answer
187 views

Check the Comment in Reply or Normal State

I'm currently working with custom comment meta, and I have some custom additional field such as rating etc, when user write a comment ( not comment reply ) I want to show the rating field, but when ...
1
vote
1answer
269 views

Display comments on a comment page without form

I'm using this to allow me to display my comments for posts on category pages: <?php $wp_query->is_single = true; comments_template(); $wp_query->is_single = false; ?> However I don't ...
0
votes
1answer
97 views

approve,spam,trash etc. options are not coming on comments in admin panel

I made some changes in comment-template.php, wp-comment-post.php so now I am storing the comments withot attaching with any post or page (I am setting the comment_post_id to 0). But now the problem ...
0
votes
2answers
384 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
2answers
212 views

strange behavior with comment position

I've created a custom content.php and removed any comments on the content.php page then i changed the sharing-service.php from jetpack and added comments_popup_link there: // Wrapper ...
1
vote
2answers
163 views

Display commenter's registration date on comments?

Is there any way to display a user's (registered) registration date on the comment. Lets say i have a written an article, registered users A, B, C and D left a comment on my article. I can display ...
-1
votes
2answers
1k views

Add an attachment feature to comments

Is there a way to allow attachments with wordpress comments? I know of a paid plugin that allows this but I was hoping for someone to point me in the correct direction that's future proof and doesn't ...
0
votes
2answers
162 views

In list with recent coments - only show one comment per page/post (latest comment)

I am trying to make a custum 'Recent Comments' code for use in the sidebar. I have come a long way, but there is just one thing that doesn't do what I'd like it to do. What I want is that, per page ...
-2
votes
1answer
99 views

Integrate comment system in the sidebar?

I would like the comments of a post and the comment box to appear in the sidebar. How can I do that?
4
votes
1answer
3k views

How to export comments in WordPress?

I want to export my comments to Excel, PDF or Word. The format really doesn't matter, I just want them exported. I tried the Export Comments plugin, the standard one, but couldn't get it to work, I ...
1
vote
1answer
57 views

Show only if x comments?

Is there any function that will show some content only if there are more than x comments ? For example show some banner only if more than 10 comments are in post ? Thanks :)
1
vote
2answers
509 views

get_comments_number of depth-1 (Level 1) (1 post)

I selected only 2 levels of comment for my wordpress site. How can I display the number of comment of the first level ? (Depth-1)
2
votes
1answer
116 views

Can WordPress store comment cookies on two different computers?

It's usual that WordPress stores comment author name and email in the user's browser cookies, so next time the visitor has to comment, they have their name and email already filled in automatically. ...
-2
votes
1answer
94 views

Rating based off of number of comments or views

Is it possible to have some sort of rating feature based off of x amount of comments or views? Example: Instead of saying 200 views, have it say: "Hot" 400 views, have it say: "Very Hot" ...
1
vote
1answer
358 views

get_comments() where parent is not 0

I need a way to get just the comments that aren't top level i.e. where parent is not 0. I've tried: $args = array( 'parent' => -0 ); $comments = get_comments($args); I know the parent ...
0
votes
2answers
81 views

How to delete ALL comments from certain category in Wordpress database?

I'm trying to delete all comments from posts in a certain category in a Wordpress database. The Wordpress database is rather complicated so this must be probably some join of wp_posts, wp_comments ...
0
votes
1answer
204 views

Subscribe to a post's comments without posting a comment yourself

I've seen a few plugins (subscribe2, subscribe to comments) that allow people that have commented to receive emails containing follow up comments. What I want to do is slightly different. I want to ...
2
votes
1answer
57 views

comment_email hook doesn't seem to work for comment editor field

I am building a plugin that allows users to PPK encrypt their users' IP/email data. Thus, IP/email data is set to dummy values in the comments table and encrypted values are stored in corresponding ...
0
votes
1answer
435 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
148 views

Admin can enter JavaScript - potential security risk?

WP 3.5/TwentyTwelve/Clean install. I try this when login as admin and editor. I try add reply for first post "Hello World": <script>alert('XSS')</script><script><</script> ...
0
votes
1answer
168 views

Custom avatars in wordpress comments?

I'm looking for a way to let people connect with facebook when posting comments, and to use their facebook avatars as the avatar for the comments. How can this be done? Do I need to create a seperate ...
0
votes
1answer
63 views

By Default, Turn Comments Off for Pages & Leave Comments On for Posts

By default "Discussion: Allow comments." is checked when a new page or post is created. I know you can make "Discussion: Allow comments." unchecked by default on both pages and posts by going to ...
3
votes
2answers
305 views

How to get comments with mixed status using get_comments?

Is there a way to get comments with more than one status using get_comments function? Let's say I would like to get both trash and hold comments. It is possible to do the same with posts: ...
2
votes
1answer
90 views

How to no follow the paginated comments

I am trying to find a way to add rel="nofollow" to my comments pagination links. Can anyone provide me with a hook or way to do so?
4
votes
1answer
181 views

Allowing more elements in comments via functions.php

I would like to allow certain HTML elements in my comments and have edited kses.php directly in the past. However, I have been hacked recently and replaced all the core Wordpress files and feel I ...
1
vote
1answer
569 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 ...
3
votes
1answer
127 views

Comments number message in password protected post

I've got a password protected post and comments_popup_link('No Comments', '1 Comment', '% Comments'); function displays "ENTER YOUR PASSWORD TO VIEW COMMENTS." message. The question is, is it possible ...
0
votes
1answer
390 views

Get number of comments per page

I am trying to grab number of comments to display per page. So far unsuccessful, looking for something similar to this $wp_query->max_num_pages; Thanks.