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
0answers
38 views

multiples commenting system through wordpress comment meta

I wanna add Questions & Answers platform and reviews platform for custom post type in single.php template.. I have added one commenting system but I dont have any idea to add multiple commenting ...
0
votes
2answers
32 views

How can I embed comments plugin to my own website?

I am looking for a way to embed WordPress comment form to watch.php in order to allow user to comment on a specific video. Can you tell me how?
4
votes
1answer
120 views

Delete all user comments

I've added a way for my registered users to delete their account but Im fairly sure that wp_delete_user() deletes: User posts and all post meta Links User and all user meta I also want to delete ...
2
votes
1answer
37 views

Parent comment's author name

I was really suprised when I couldn't find WP functionality to display the person's name who was replied to.. Any way around this problem? How do I get the name of parent comment's author?
4
votes
1answer
88 views

“Categories” for comments?

For example post has comment area with 3 differnet tabs, e.g comments, reviews and questions. I've looked into it for some time know but I haven't came up with a perfect plan.. I figured it's time to ...
1
vote
1answer
63 views

Replace comments with a dummy text

I want to hide comments for a certain time and show a sample text in the comment text area. Say, there are 50 comments on a post. What I want is- hide every comments on this post and there will be a ...
4
votes
1answer
52 views

comment_form() generates the wrong action url

I created the file comments.php. Inside it I have a manual loop for my comments section. I loop from offset = 0 + ((page - 1) * total_per to offset + total_per). The problem is when I add new comments,...
0
votes
2answers
98 views

I wish to remove, disable or hide the comment authors' links to their sites from my home page

I wish to remove the author's links to their original website, from my page I know this is in either the functions.php or comments.php files. I'm not sure exactly of how to edit these php files, I'...
1
vote
0answers
22 views

Emojis replaced by '?' automatically

I just discovered that all emojis on my site were replaced by the ? char. I saw this on comments and posts. Tables like wp_comments or wp_posts had a utf8mb4_unicode_ci collation before and now, so ...
1
vote
0answers
19 views

How to implement comments on specific fields in wordpress?

I have a custom content type in Wordpress, having some custom fields. I need some of this fields to be opened to comments, that is Content Flower --> Field Name --> Field Color --> Field ...
1
vote
0answers
23 views

After Submitting Comment Form Shows an Empy Page in WordPress

I have created comment form and write comments then submit. But it will shows an empty page. The page path is http://localhost/isite/test/src/wp-comments-post.php I have changed define(wp-debug true). ...
1
vote
0answers
47 views

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

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 ...
1
vote
0answers
18 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. ...
1
vote
0answers
14 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 ...
0
votes
1answer
153 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() ...
4
votes
2answers
149 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 ...
1
vote
1answer
83 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
vote
2answers
42 views

Declaring <?php ?> in variables [closed]

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 href="http://slembas.esy.es/">...
1
vote
0answers
48 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 ...
1
vote
1answer
48 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 ...
6
votes
1answer
58 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 ...
5
votes
1answer
103 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
2answers
55 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
39 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 ...
1
vote
1answer
26 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
174 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
0answers
13 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
66 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
0answers
13 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 achieve....
0
votes
1answer
196 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
35 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
0answers
90 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 ...
0
votes
1answer
40 views

Dynamic page with comments

I am aware that it is possible to write a page template with custom PHP code to generate dynamic content. For example, the page can take in a query parameter e.g. musician ID. It then uses custom ...
0
votes
1answer
31 views

Admin - Dashboard - Unset recent comments

I try to get rid of the comments list in the WordPress 4 dashboard section but it doesn't work. Here is what I tried: function remove_all_dashboard_widgets() { global $wp_meta_boxes;...
1
vote
1answer
51 views

preprocess_comment array doesn't have comment_ID

I have a function using the filter preprocess_comment and want to use the update_comment_meta( $comment['comment_ID'], 'post_id', $post_id );. However, the array in preprocess_comment doesn't have ...
0
votes
0answers
21 views

Change comment order

Is there any way to show the latest comments first? It begins with the oldest comments and I think that can be very annoying after some time!
2
votes
1answer
23 views

Moving comments section to left of content (Twenty Thirteen)

So I want to move my comments section to the left of my content in my Twentythirteen child theme. I've located where it's pulled from in the content.php file: <?php if ( comments_open() &...
0
votes
2answers
86 views

Custom comment field not showing when logged-in

I've added a custom field in comment by using function comment_label($fields){ unset( $fields['url'] ); $fields['rate'] = '<p class="comment_form_rate" id="rate_recipe"> ...
1
vote
1answer
27 views

List user comments in author page

I'm trying to display a list of the author comments in the authors page but it only shows No comments made. How can I list user comments in the authors page? <?php $args = array( 'user_id' =&...
-1
votes
1answer
42 views

Get Comment With Meta value

I need get all comments of a post including of the meta value.. for eg. i need all comments fields + a meta value. i tried the following code to get but.. its not working $args = array( 'status' =...
0
votes
0answers
25 views

Redirect after comment does not work with REQUEST_URI

I have a page with loop of posts. Every post can be commented from that page and i'm trying to redirect after commenting back to that post with hastag in url. Only problem is that $page_path does not ...
0
votes
1answer
46 views

How to replace default comments with custom HTML?

I'm going to replace default list of comments and comment form with Facebook's comment box. As far as I know there is function wp_list_comments(). How can I replace this function with my custom one? ...
1
vote
1answer
54 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
0answers
15 views

I wish to hide the complete comment section/div on all the posts page after a particular time period

I wish to hide the complete comment section/div on all the posts page after a particular time period(i.e after like 5 minutes after landing on the post page). Tried different plugins but none of them ...
-1
votes
1answer
21 views

Trouble figuring out how to get my button to submit comment

I have a text area in the sidebar (sidebar-chat.php) of my posts page with an input that is an image. When this image is clicked, the comment is supposed to submit. I am just having trouble figuring ...
0
votes
0answers
70 views

On WP 4.4, how to get the post id on comment_post hook

Since WP 4.4, seems like is not possible anymore to use get_the_ID() or the_ID() when hooking on comment_post action. How can I get the post_id when a new comment is saved?
0
votes
0answers
57 views

get_comments not working properly after WordPress v4.4 update

I just found a wired thing on my website after v4.4 update. In my blog pages I use 2 functions to fetch comments. First I use wp_list_comments( array( "callback" => "checkout_comment", "type" =&...
0
votes
1answer
35 views

Allowing comments on author pages

I need to be able to allow users to leave comments on author profile pages. I came across another answer here that has given me a basic outline of what needs to be done to allow it: Author page: ...
1
vote
1answer
17 views

Notify Wordpress Site I Have Linked To Them

I have noticed that when a Wordpress site puts a link to my site in a post it shows their website in the comments section of my site. I'm wonder how could I make my PHP application do this? I mean ...
0
votes
1answer
11 views

Comments closed but enabled on edit screen

I have been trying different themes, and I just noticed "Comments closed" on every post. I know that it wasn't always that way, but I went back to the previous theme and then back to one from further ...