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
1answer
163 views

display only parent replies count in index.php

Currently my posts display the total count of comments (i.e both replies and sub-comments). I want to display only the number of reply count in my index.php (and not comments for a reply) for each ...
0
votes
1answer
15 views

User's Comments Number: Storing it in a meta field for different uses

As I am building a new website where tracking users' information is key to engage, etc..., I found it important to be able to store users' number of counts as a meta. The main reason for storing the ...
0
votes
2answers
67 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
16 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 ...
0
votes
3answers
85 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
2answers
138 views

I want to add comment feature to woocommerce single product page

I want users to give their comments and replies about the product. Currently have woocommerce installed in my wordpress site and currently using The One Pager woo theme. I want to add the comments at ...
0
votes
1answer
104 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
1answer
82 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
53 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
124 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
4answers
10k views

Show Social Sharing Buttons And Facebook Comments In Lightbox Modal Dialog (Image Overlay)?

I would like to show Facebook comments and share buttons in the lightbox modal dialog (image overlay) that pops-up when I click on an image in gallery. A lot like what they have done on this website ...
-1
votes
2answers
282 views

Can features like Disqus or Intense Debate be done in a normal WordPress plugin without a 3rd party involved

I was searching for a real good feature rich comment system for Wordpress, I used Disqus a few times and may still not know the whole list on features and why it's so popular. Would features like this ...
0
votes
1answer
107 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 ?
3
votes
6answers
9k views

How to add a class to the comment submit button?

How do I add a class to the comment submit button? The simplified function comment_form(array('id_submit'=>'buttonPro')); obviously only changes the id and class_submit does not seem to exist. I ...
0
votes
3answers
131 views

Customized Comment Form Issues

I'm developing a Wordpress theme and I faced a problem while customizing a comment form. What I wanted is to eliminate URL field and put my own classes for name and email fields. I'm doing it like ...
0
votes
1answer
53 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
0answers
36 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
21 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
133 views

Comments turned off, but 'Leave a reply' link still there [duplicate]

On my site, commenting is not enabled. But at the top of each blog post (except for one, strangely), there's a 'Leave a reply' link. (the link doesn't do anything -- but the words 'leave a reply' ...
1
vote
1answer
90 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
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
320 views

pre_comment_content filter not working using IntenseDebate Enhanced moderation

I wrote a plugin that modifies the contents of some comments. It uses the pre_comment_content filter. It seems to work OK using the standard WP moderation, however, it doesn't when I turn on the ...
0
votes
1answer
79 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
0answers
36 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
1answer
57 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
85 views

What filter or action to replace comments or add new comment system

I am looking to make a plugin for my site, which either replaces the current comments in a post or adds an additional comment system. I am getting the comments from a custom RSS feed from my forum ...
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
2answers
84 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) : ?> ...
0
votes
0answers
52 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 ...
2
votes
1answer
56 views

Users with custom roles can't read each other's comments

My site has a custom role ("coach") with its own set of capabilities (via map_meta_cap along with a few built-in roles). Each user is assigned a page on the site that they "own" and can edit (via a ...
1
vote
1answer
195 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
3answers
560 views

Insert data on comment post

I am trying to find reference for comment_post to insert custom data to custom table when comment post. I want to insert below things to my custom table Comment's Post ID Custom content (which ...
2
votes
1answer
74 views

Use comments as notes, visible for comment author only

My question is exactly the same as this, not sure if it can be bumped so thought I'd post again. Basically I'm trying to create a scenario similar to how comments work. On a page, a registered user ...
0
votes
3answers
583 views

Commentlist: bypostauthor problem with children list

I have a rather annoying problem with my commentlist. After trying out a lot and playing around with the CSS stylesheet I don't think this is a CSS problem anymore which is why I decided to post here ...
0
votes
1answer
34 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
79 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 ...
3
votes
2answers
174 views

How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?

I added the following to my functions.php: add_action('pre_get_posts', 'keyl_get_emp_posts'); function keyl_get_emp_posts($query) { if ($query->is_main_query()) ...
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
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 ...
0
votes
1answer
328 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
52 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
vote
1answer
569 views

Showing author page if user has no post

I have a page with profiles in which people can post or comment on a post. The problem is that if this user chooses to comment instead of post, he or she will not get an author page until it has ...
1
vote
2answers
429 views

Cannot get local avatars to show

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 ...
-1
votes
2answers
67 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
69 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
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 ...