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

List author comments with Ajax

I have an author.php template to show author's posts, comments and contact details. I use this function for to show author's comments: function profile_comments() { $curauth = (get_query_var('...
0
votes
0answers
16 views

How to load comments based on URL parameter(s), not post ID?

I've modified my wordpress install to grab data from an external db instead of relying on the post system. The problem is, the same comments are loaded regardless of the URL - of course this is to be ...
1
vote
2answers
30 views

Include comments form in plugin page

I want to include the comments form on a page generated by my plugin. I got the post id I want to attach the comments to, but I can't get any of the Wordpress comments functions to work. Tried to ...
0
votes
0answers
22 views

“Allow people to post comments on new articles” works only for administrator posts

I have a strange situation about comments. On my blog there is the check mark near the: "Allow people to post comments on new articles" and in fact in the db I see: 'default_comment_status', 'open',...
0
votes
1answer
15 views

Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )

I was learning from the WordPress codex about global variables and after var_dump($post) I found out that $post has a property called comment_count I was wondering whether I can directly use $post-&...
0
votes
0answers
13 views

limiting comments in contributor post-editor

Currently a 'contributor' post-editor page shows comments from everyone. Is there a way to limit/control the comments the contributor sees to only what has been commented on his/her post in ...
0
votes
1answer
17 views

Use has_filter on comment_post

I hook to comment form (on comment_form_logged_in_after if user is logged in and comment_form_before_fields if not) to add 2 fields (rating and title). These fields can be mandatory or comment will ...
0
votes
0answers
15 views

How do I get my comments back after trashing a post (and undoing the 'trashing')?

I accidentally hit the trash icon under my latest post. A message came up that asked if I wanted to undo the action. I clicked on 'undo'. My post was restored, but all my comments disappeared. I ...
0
votes
0answers
42 views

comment visible only for author post and admin and user comment

i have a custom post called "service" in this custom post i want a possibility to send proposal-comment by user. but i want this comment are visible only for admin + author of post + user that send ...
4
votes
2answers
53 views

How can comments be submitted when I don't have a comment box on a page?

I've blocked access to xmlrcp, and removed most everything that is generated in wp_head. However, I'm still getting notifications in the admin about comments being posted on posts even when there is ...
0
votes
1answer
43 views

comment_notification_text filter for custom post type

Is there a way to add the comment_notification_text filter to a custom post type? I'm trying to send a custom email when a comment is left on a custom post type I am currently using this filter: ...
1
vote
1answer
38 views

Bots posting comments on pages

I'm wondering how it's possible for a bot to post a comment on page where there is no call to the comments template in the template that the page utilizes? The only place that I'm calling the ...
1
vote
1answer
22 views

How to return 404 when called edit-comments.php?

I removed the edit-comments.php link from the backend but I can still access to it when I know the link ./wp-admin/edit-comments.php. How can I deactivate this link as well and return a HTTP 404?
0
votes
1answer
27 views

comment_reply_link not work with me

I have this code that get me last comments in my site : function bg_recent_comments($no_comments = 30, $comment_len = 80, $avatar_size = 48) { $comments_query = new ...
0
votes
0answers
21 views

Wordpress Costums Field Comment Box on Admin Page (Post Editing)

can help me about wordpress comment field on post editing in admin page? i want to change the default form like picture above : to like this...
0
votes
0answers
24 views

How to add comments on a custom page with URL parameter?

I tried to look for this for several days but I can't find anything. Maybe I'm not using the good "words" so I hope someone we'll guide me in the right way. I am building a custom page with a list of ...
0
votes
2answers
50 views

How to properly enable comments form in page template

I've applied the following code to enable the comment section in the page template. <div class="col-md-12"> <?php while ( have_posts() ) : the_post(); ?> ...
0
votes
0answers
19 views

comment_moderation_subject is not working for me

I am trying to change the comment email subject with help fo the following code. but its not working. add_action( 'comment_moderation_subject', 'editing_comment_mail_subject', 10, 2); function ...
0
votes
0answers
39 views

How to allow a contributor user role can only trash the comment in wordpress?

I want to allow the 'Trash Comment' permission for Contributor role user on his/her uploaded post.
1
vote
1answer
79 views

How stop the process of submitting a comment if a field is empty?

I have a comment form and in that comment form I've added an extra input field called with the name 'review_title'. When one submits the comment form the comment it's gets inserted perfectly fine and ...
4
votes
1answer
110 views

Comment form not display properly?

I want to display comment form in my blog page comment_form() work properly but its display like that: Comment name email website But this form should be display like that ...
0
votes
0answers
39 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
33 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
121 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
39 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
64 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
55 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
111 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
24 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
53 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
183 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
191 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
102 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
44 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
52 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
49 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
106 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
60 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
41 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
27 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
197 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
70 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
14 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....