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)

0
votes
2answers
69 views

Wrong IP address in comment section

I have noticed that the last few times in which I have linked to an old post of mine from my latest post, my IP address in the Comments section is wrong (sometimes my IP address appears in the form ...
0
votes
1answer
110 views

Display avatar with comment form?

I can display the current user's avatar alongside the comment form when posting a new comment with $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { echo ...
1
vote
0answers
29 views

Link to a User's Forum Profile From Their Comment

How do I link a user's forum profile from their name in their comment. So far I've got this code in functions.php but it doesn't seem to work: function force_comment_author_url($comment) { // does ...
0
votes
3answers
88 views

How can I change the label “Comments” to “Review” everywhere in the WP installation without translation

Got the way to change the labels everywhere for the post_type "Post". For a customer site, I need to use the WordPress comments. Just need to change the label from "Comments/Comment" to "Review" ...
0
votes
1answer
17 views

Applying same style to all the comments on the page

I have this code below: #comment-1, #comment-2, #comment-3 { width: 70%; margin: 1em 0 0.5em 0; } This CSS is to format the comments for them to be 70% of the parent div's width. I ...
1
vote
1answer
96 views

Removing <li> from Comment

I'm making a custom comment template, and I do not wish to use a list to display comments. By default, WordPress puts the following at the end of every comment: </li><!-- #comment-## --> ...
3
votes
1answer
55 views

How to override function twentyten_comment

I am running the Twenty Ten theme. I want to override comment formatting for certain posts. After researching how to do this, I copied the twentyten_comment function from the parent theme ...
0
votes
1answer
140 views

How to add a privacy-checkbox in comment-template?

i need to add a privacy-checkbox to the file comment-template.php. I created the checkbox and a paragraph and it looks fine, so far. <input type="checkbox" name="privacy" value="privacy-key" ...
0
votes
1answer
117 views

Comment notification not working

I use a different theme named Team Talk (Premium). Since I use this theme, I don't receive the new comment notification by email. I don't know where to look at but I found this in my new theme : ...
0
votes
0answers
11 views

Subscribe registers to all comments from a category

I tried many plugins in order to automatically (from user profile panel) subscribe registers to comment notification for post in a specific category. Do you have any tips to do that ?
0
votes
0answers
38 views

Comment Approval Message Showing to All Users

I'm using a custom function to output comments. It seems to work fine, however I've added the following notice for when comments are yet to be approved: <p class="awaiting-approval">New comment ...
0
votes
1answer
22 views

How to deal with spam comments and distinguish them from non-spam comments?

I have something like 10000 comments. They are probably all spam except for one or two. And they are all waiting for me to approve them. Is there a free solution to this issue? Thank you!
0
votes
1answer
22 views

Appended comments but they show up above the content instead of below

I am trying to append a comments template to the end of the flash object in this plugin file. Below is the full code. To pinpoint exactly where I added the comments template, please refer to this ...
0
votes
1answer
55 views

Wordpress - show number of comments for each post in widget

I have installed a plugin that lets me put a PHP code into the widget - basically, what I want to do is to create a "recent posts" area, where you can see a cover of the post (featured image's ...
0
votes
1answer
86 views

Customise Comment form

I am trying to customise the comment form so I can clearly edit the labels and style them. <?php comment_form( $args = array( 'id_form' => 'commentform', // that's the ...
0
votes
0answers
12 views

On Subdomain comments need user login

I have a problem with comments on subdomain sexy.doucheapied.fr On main domain www.doucheapied.fr everything work fine, but on subdomain, visitors are redirected to login page when they comment on an ...
0
votes
0answers
13 views

count how many approved comments made by a moderator

I need to know how my comment moderators are performing by counting how many each of them have deleted, approved or spammed. Is there a way to do this?
0
votes
1answer
58 views

How can I get a comment ID on Submit?

I've added an attachment field to my comment form. It stores the files on Amazon AWS and writes the URL, user ID, post ID, and a few other things to a custom table. I'm having some difficulty getting ...
0
votes
1answer
33 views

Auto disable comments with custom field

i have this code to disable comments after X days based on publish date. How can edit this code to auto close comments based on a specific date using custom field? Thank you. function close_comments( ...
0
votes
0answers
37 views

loop with the last commenter on each post on specific category

Hi i have the following code that lists the posts from specific category and the date, post author, the last comment author, last comment date and the avatar for comment author for each post on the ...
0
votes
2answers
92 views

Only display posts with comments

I would like to query out only posts that have comments. So posts with comment_count = 0 won't show but anything above that will. This is what i query but it still picks out posts that doesen't have ...
0
votes
0answers
24 views

Does not show comment list

I can not see comments on my post. There is the code I use: <?php if($comments) : ?> <ol class="post_comment_list clearfix"> <?php foreach($comments as $comment) : ?> ...
1
vote
1answer
98 views

edit comments capability for authors

I am using wp site where registered users have authors roles. I want authors to have permissions to edit their own comments. Now only admin user have capability to edit comments and even editors do ...
0
votes
1answer
42 views

How do I call comments_template(); from a plugin file?

I am trying to call comments_template(); from a plugin file. Specifically, it's the player.php file from the plugin All Video Gallery. Below is the file itself. <?php ...
0
votes
0answers
54 views

Safe way to allow sample HTML code in comments?

I see that post comments do not allow short snippets of sample HTML code to be entered for safety reasons. But if you have a blog where you expect to have conversations about code, how do you handle ...
1
vote
1answer
205 views

using comments_template() in custom single-portfolio.php

I am wanting my users to be able to post comments on my portfolio page. Ive created a portfolio page using custom posts. On my blog i am using the comments_template(); and then on the comments.php i ...
0
votes
1answer
36 views

Comments Pagination as an unordered list

I am currently using <?php paginate_comments_links(); ?> to display comments pagination. How can I customise this so that it uses a UL and LI? (Such as is possible with custom post pagination). ...
0
votes
1answer
89 views

How to 'If Author' Comments Check

I would like to add extra markup to a comment made by the site admin/post author. Is there a check for this and how would I add it to my code below? Basically, if the comment is from the post author ...
0
votes
0answers
92 views

your comment awaiting moderation message sometimes not appearing

On a new wordpress site I realise that sometimes when testing the comments feature for posts that the "your comment is awiting moderation" message does not appear. When a comment is posted, the url ...
0
votes
1answer
347 views

get comments by current user inside page template

I want to add a page template inside my custom post type and retrieve inside that page the comments posted by current user. I have this code for getting the current user: <!-- GET CURRENT USER ...
0
votes
0answers
14 views

Is it possible to get the comment_reply_link within latest comments?

I have the following code to get the latest comments; function get_recent_comments($no_comments = 5, $comment_len = 80, $avatar_size = 48) { $comments_query = new WP_Comment_Query(); $comments ...
1
vote
2answers
147 views

How to show Disqus comments and pingbacks?

I use disqus to handle comments on my blog. I also like to have pingbacks from various posts back and forth to each other (and from outside sources. However, I noticed today that while the comment ...
-1
votes
2answers
71 views

changing default comment form arguments [duplicate]

I want to change the default comment form title_reply, label_submit ... just on my CPT without affecting the default comment form but I can't get it to work without affecting the default ones. First ...
1
vote
1answer
74 views

disable comments if array exists

This is the code which is registering the function for rewrite_endpoints(): function wpa121567_rewrite_endpoints(){ add_rewrite_endpoint( 'comments', EP_PERMALINK ); add_rewrite_endpoint( 'stats', ...
0
votes
0answers
127 views

External link not showing on post but showing on comment

Why is this? For example, if I input this in a post: <a href="http://i2.wearecdn.net/images/2012/11/47/article/vans/so6099412/vans-authentic-schuhe-bright-green-black-1755-zoom-0.jpg">This ...
0
votes
0answers
31 views

Load Paginated Comments Inline

Currently my WordPress blog loads the comments in paginated results (loading all at once slowed down the blog too much); first displaying the oldest 50, after clicking "<< Older Comments" it ...
0
votes
1answer
220 views

jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default

I am attempting to create a button to show/hide comments in WordPress. I am currently using the following script: <script> $(document).ready(function() { // Get the #comments div var ...
0
votes
1answer
30 views

How to maintain changes to comment-template.php

I have made some custom changes to the file wp-includes\comment-template.php. These changes are periodically lost and I assume it's related to updates for WordPress and the file is ...
0
votes
0answers
27 views

selectively disable akismet

I need to disable Akismet for comments written by one of my registered users, since there is a problem that when such plugin is enabled they do not appear. I have some familiarity with php but I am ...
0
votes
0answers
22 views

Can't post comment to blog in wp-multisite

I'm running a wp-multisite install with ~100 blogs. I recently discovered a blog that I can't post a comment to (though I've been able to previously). When I try to submit a comment, I get the ...
-1
votes
1answer
117 views

add comments custom fields after user is logged in

I want to add two custom fields inside comments on a CPT after the user is logged in on. This is the code for creating the custom fields: function debate_comment_fields( $fields ) { if( ...
0
votes
1answer
85 views

comments hooks on custom post type

First, this is what I want to achieve: I want to add a comments hook on a CPT which is asking users to be registered and logged in to be able to post a comment. And after the user is logged in to ...
0
votes
2answers
30 views

Customizing Comments

Hi I want to customize the text with the arrows pointed at at the image I have uploaded. I have managed to customize some but I cannot find the file to customize the rest. Many thanks its on local ...
0
votes
1answer
53 views

custom comment fields on CPT

I want to create few comments custom fields for my CPT and remove the default ones. I will have just two custom fields more exactly 2 radio inputs. Here is my code: function ...
0
votes
0answers
11 views

Adding comment template on a loop into a page

I've created a loop in a page, with a single post per page. The type of post is the default "post". Now, I've resolved the problem of pagination on this page, but I cannot show the comment template on ...
0
votes
0answers
13 views

How to prefill comment-author, -site and -mail inputs when user writes a second comment?

How to prefill comment-author, -site and -mail inputs when user writes a second comment? I think it is saved in a cookie. Are there some functions? THX
0
votes
1answer
46 views

unapprove comments on custom post type

I have registered a custom post type and I want to unapprove comments by default on this custom post type without affecting the default posts/pages which is set to approve. I've looked through the ...
1
vote
2answers
452 views

Cannot get local avatars to show [closed]

See updates below. I upgraded to 3.7.1 using svn. I did this on my localhost first to make sure everything is fine. Everything was, so I proceeded to do it on the server. However, on the server, the ...
0
votes
0answers
10 views

Exclude comments on page X from site's comments RSS feed

I would like to exclude comments on a certain page from the site's comments RSS feed (site.com/comments/feed/). I've done some searching but failed to find any info on how this could be achieved. Any ...
0
votes
1answer
61 views

How is comment spam received without a comments form?

The theme one of my sites is using does not have a comments form nor is there any HTML markup for comments anywhere within the code. So, how am I receiving spam comments? All the spam is caught by ...