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
512 views

Actual comments not showing, but form is?

I have edited the comments form to remove a few fields and now the approved comments don't show up, just the form itself. What am I missing from this? <?php $comment_args = array( 'fields' ...
-3
votes
0answers
21 views

Step 3: the Domain Address [on hold]

I'm trying to register for a blog. I went through the first two steps and the third is almost blank. All it says is: Step 3 of 5 / Let's find a domain. / Choose a custom domain, or a free ...
0
votes
0answers
14 views

Unique User for all visitor, but possibility to comment with unique name

Maybe a little bit more information: The website is a local blog for a company. They generate only one user and password each 3 month. This username is used for all people who work in this company. ...
2
votes
3answers
1k views

How can I highlight admin comments?

Basically what I want is to have all comments posted by admins with different background color than the rest, so they're easily distinguishable. I wasn't able to find any plugin that would do this ...
0
votes
0answers
10 views

displaying and sorting comments by a custom field (using PODS plugin)

In my blog, i answer comments inline by editing them to add "admin says: blah blah". i do this so i won't bump up the comment count with all my admin comments. I am using the PODS plugin to add a ...
0
votes
5answers
573 views

Displaying Posts Depending on Number of Comments and Latest Comments?

I would like to be able to display a list of posts on a page depending on when and how many comments they've got. Something similar to how it is here on stackexchange. To be more specific, I want: ...
0
votes
3answers
40 views

Display Most Recent Three Comments Per Post

I'm using the comments_template() function to echo out my comments template in the sidebar of each post. This is a requirement of the project. It has been requested that I only echo out the three ...
0
votes
2answers
199 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 ...
0
votes
1answer
48 views

Comments from other blogs are getting added to my blog?

Today I started receiving a ton of requests to moderate comments on my blog, but when I looked at the comments they are clearly from multiple other people's blogs. What could be the cause of this and ...
12
votes
5answers
506 views

how to reduce the number of spam comments

I've got the Akismet plugin on my WordPress site but I've been getting more and more spammy comments (that get caught). I'm amazed at the number as the site isn't that popular and doesn't have much ...
0
votes
0answers
9 views

comments sorting incorrectly across multiple pages

This is a related_comments.php file which should display comments on certain pages in ascending order while the newest comment should be at the top. This is working fine if there is only one page for ...
1
vote
4answers
491 views

Comment as post - understanding wp_list_comments

I'm creating a site where a central question will be posed on the front page with excerpted first-tier comments linking to a page with the full first-tier comment, presented almost as a post, with ...
0
votes
2answers
587 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
1answer
49 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() ...
1
vote
2answers
2k views

WordPress custom form action url

Is there any way to replace standard WordPress comments form action, which usually looks like this: <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" ...
-5
votes
0answers
16 views

Filter Comments via user type

I am creating a website using WordPress that has two user types: 1. General 2. Expert. I have restricted my posts so that only logged-in users can comment on it. What i want to do is to filter out the ...
0
votes
1answer
3k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
-2
votes
1answer
13 views

Is it possible to export native WordPress comments from a site to Disqus? [on hold]

I have a site with my own domain on wordpress.com. Is it possible to export its comments, so that I can import them into Disqus set up for a static blogging site that will reside on the same domain ...
2
votes
1answer
749 views

How to display comments on different page

I am creating a reviews site and I want to display the customer reviews (comments) on a separate page from the single-restaurant.php. I'll just have a link that says (Read reviews/ add yours). I ...
1
vote
1answer
24 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 ...
0
votes
1answer
11 views

Comment form not showing up without comments

My posts dont show the comment form unless that post already has comments. If post has one or more comments, everything works perfectly. Everything used to work fine (that's why some posts have ...
-1
votes
0answers
19 views

display name of a comment [closed]

I would like to ask, how is possible, the display name of an old comment in a post being updated with the current name of an author. The same way that works with the post names. thanks.
1
vote
2answers
36 views

Declaring <?php ?> in variables

I need to put the PHP <?php global $' . $icon_var . '; echo $' . $icon_var . '; ?> inside the variable of a custom menu structure, but it gets commented: <a ...
0
votes
0answers
26 views

comments_array filter doesn't work in some themes

I have a problem with comments_array. The filter doesn't work in some themes. add_filter( 'comments_array', array( $this, 'display_comment_image' ) ); // in __construct. function ...
0
votes
2answers
1k views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general ...
6
votes
1answer
52 views

Show only posts which can be commented OR have custom meta field

I'd like to exclude posts on the homepage which are closed for comments. This works thanks to this: Show only posts which can be commented Now I'd like to add the possibility for exceptions – to show ...
1
vote
2answers
534 views

How to use the 'comments_number' filter?

I'm not sure how to use this filter. Could someone show me an example? I'm trying to change ('0', '1', '%') to ('0 Comments', '1 Comment', '% Comments'). I'm using this function to get the comments ...
0
votes
1answer
22 views

css hide all the comment reply links except the lowest nested comments

I understand different themes use different css for the reply link however there should be enough native WP css to narrow it down to the lowest nested comment. I'm trying to get my head around the ...
4
votes
1answer
87 views

How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?

Is there a way to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit? I don't necessarily need nested comments I just need the reply link to be always ...
1
vote
1answer
22 views

Count comment threads, not total comments in a post

For a post I'd like to count the comment threads and not include nested replys in the count. Currently I'm using a simple comment count, comments_number( $zero, $one, $more ); What would be the best ...
0
votes
2answers
25 views

Commenting out unwated CSS/scripts in HTML with PHP

I am trying to comment out unwanted CSS and JS files to prevent them from firing in the HTML by creating a simple function in my functions.php. So far I have: function commentStuff() { $stylesheet = ...
1
vote
1answer
32 views

Redirect when click on “response” in comment section

I use a custom template for some of my categories. These categories offer a comment section in which a user can reply to an comment. The problem is, that the use (after clicking on the reply link) is ...
0
votes
1answer
398 views

Insert image in comment reply

I have searched everywhere but can not find a plugin that allows users to upload an image into their Reply to a comment. It is a photographic blog so has to have this ability. I did try a couple but ...
0
votes
1answer
416 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
2answers
238 views

How to make comment text field un-required?

My requirements are bit different I was able to hide email and website field with filter but what I want to know is there a way to make comment text un-required when I am giving comment without ...
0
votes
2answers
71 views

How to allow duplicate comments AND without comment text

I've searched hard but I've been nowhere near close to finding the answer to this... I have a comment meta box that gives the commentor two tick boxes. The tick box is the only input into their ...
1
vote
1answer
22 views

How can the recipients and content for comment email notifications on a custom post type be changed?

I am building a ticket system and would like to use the comment threads as the discussion for the ticket. There are three users involved in each ticket: The client. The support operator. The support ...
1
vote
1answer
52 views

WP 4.4.1 allow empty comments via add_action 'pre_comment_on_post'

got a question about allowing empty comments with worpdress v.4.4.1 to achieve this i use the action 'pre_comment_on_post'. in WP 4.3.1 i could do this easily: if (isset($_POST['comment']) ...
0
votes
1answer
50 views

Comments and post dates not showing up correctly on “posts page”

I have customized the Twenty Fourteen theme to use the page "news" for my posts page because I have static frontpage. When you view my news page, comments don't show up, even though they are enabled, ...
0
votes
0answers
9 views

How can i replace WordPress comment email with mine

I want to replace the whole comment moderation email with mine. With this question I understand to change the content of comment email. How can I send html email instead of the default one?. If any ...
2
votes
1answer
729 views

Change Comment Author Display Name

I am trying to change the comment author name (or more specifically, the review author in WooCommerce) to be First name Last Initial (e.g., "John D." for "John Doe"). I got most of the way there with ...
0
votes
0answers
96 views

Get url/link to latest comments in a post

I have a post list in WordPress where people can see the most recently commented posts. They will appear above the list. That's fine, but now, I have 300 comments on the same posts and I don't want ...
2
votes
1answer
31 views

How to Add a Random Custom Gravatar in the WordPress Comments?

I have a client that has 5 different gravatar images, and would like them to be randomly used as the thumbnail for people's comments that have no Gravatar. I know how to change the Gravatar to a ...
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
0answers
10 views

Reviews on Custom Post Type

I have a custom post type Book and I am trying to get reviews going on there. I've followed this tutorial, however it is for all of the comments and it does not fit exactly what I am trying to ...
0
votes
1answer
628 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
0
votes
0answers
40 views

Post Comments using WP REST API v2 in WordPress

I am using an AngularJS application with WordPress backend. I am able to retrieve comments using WP REST API v2., using the following url /wp-json/wp/v2/comments?post=1324 But is there a way to post ...
2
votes
1answer
32 views

Show only posts which can be commented

I have a pre_get_posts filter to show exclude some posts on the homepage. But I can't exclude the posts which are closed for commenting. How do I do this? What I have is: function ...
0
votes
1answer
36 views

Minimum allowed comment length only on a specific page

This is the function I use to only allow comments longer than 60 chars: add_filter( 'preprocess_comment', 'wpb_preprocess_comment' ); function wpb_preprocess_comment($comment) { if ( strlen( ...
0
votes
0answers
34 views

Adding Recaptcha to comment form Wordpress

I tried to add google Recaptcha to my comment form (website platform = wordpress) and I don't get it work. I followed this tutorial which explain step-by-step how to do it... I followed all the steps ...