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)

2
votes
1answer
25 views

Filtering comment permalinks when a condition is met

I can't figure out how to filter the comment permalink on certain WP page that I use like this: if(condition is met) { (filter the comment url) } ...so that all the comment permalinks inside the ...
-4
votes
0answers
15 views

Enable Comments On Ask Me Anyting [on hold]

I was wondering how to enable comments on the plugin Ask Me Anything (Anonymously). It gives me an error message when I try to submit an answer, "Sorry, comments are closed for this item." I would ...
-1
votes
1answer
19 views

Function to get a list of all comments on 1 post [on hold]

I want to create a page where visitors can give a reference (ID) of a post and when they click on submit they get an overview of all given comments on that particular post. I think I have to create a ...
0
votes
0answers
12 views

Why are the author and the date not displayed next to the avatar in comment section?

I got the following code: jsfiddle.net/xg0waxL7 In this Fiddle it looks good but the problem is that WordPress displays just the bottom comment like I want it: prnt.sc/b7yaq6
-2
votes
1answer
18 views

How does Wordpress add the comments and comment form to posts

I have created tabs in my single.php file. I would like to move my comments from the bottom of the posts to the comments tab. I have can't seem to find how to do this. I have copied everything from ...
0
votes
0answers
12 views

Upvote/Downvote comments - where to start?

I need to work on a upvote/downvote module to my native Wordpress comments, but I have no idea where to start. Each comment must have a thumbs up and a thumbs down (including the replies), and my ...
3
votes
1answer
32 views

comment_reply_link() not showing up

In functions.php I enqueue comment-reply and also define a callback function for use with wp_list_comments(): function theme_queue_js(){ if ( ! is_admin() && ...
0
votes
0answers
17 views

How can I deny the user the insertion of emails in topics / comments and stay on the same page?

I have this function that checks whether or not a content contains an email: function fw_check_if_content_contains_email( $content ) { if ...
5
votes
2answers
198 views

How to wrap submit button of comment form with div

Is there a way to wrap the submit button with html element while using wordpress function comment_form function. $comments_args = array( 'id_form' => 'main-contact-form', ...
3
votes
2answers
32 views

How to change email notification for Comments

How do you change the user that gets the notification email announcement for new comments and comment moderation? WordPress sends the notices to the Admin user. My client is the editor of the site. I ...
0
votes
2answers
27 views

How do you override the default comment template?

I have a custom user database that is integrated with a wordpress website using a custom built plugin. I also want to integrate this user system into the comment system. I have found and completed ...
1
vote
0answers
14 views

Comment count wrong with orphaned comments

I have a news site set up with nested comments enabled. When a comment is marked as spam it is correctly removed from the article page however so to are any replies to that comment. This makes sense ...
0
votes
2answers
26 views

Replying to comments

As the administrator for our blog, can I post replies to comments as someone else. If so, how do I do this? Each time I try to post a reply, it says it is coming from me and I want it to look as if it ...
1
vote
1answer
29 views

Sort/list/arrange comments by comment author in un-nested/no thread comments

I've looked far and wide and found nothing about this. I'm wondering if it's possible to sort/arrange all the front end comments, in an un-nested comment by comment author?
0
votes
1answer
12 views

Get comment id of the individual comments in comment list when modifying comment posted using comment text filter

I am trying to modify the comment displayed in the comment list and for that i am using the following code: add_filter( 'comment_text', 'modify_comment'); function modify_comment( $text ){ ...
0
votes
1answer
32 views

Restrict characters in comment section

I am using Travelify theme and I am having some trouble restricting the characters in the comment section (textarea) or where the name or mail goes into the input tags. I read some articles about ...
0
votes
1answer
15 views

js solution to… Commentor can only post one comment BUT can reply to their comment tree unlimited [duplicate]

This question is very similar but not exactly the same as this.. One comment per user per post but be able to reply to existing comments I'd like a js solution so it doesn't need to modify any of my ...
0
votes
1answer
27 views

Posting a comment redirects admin/users to blank page

I have looked a lot on this problem on forums and tried out a few of the solutions but nothing seems to work for me. When I try to comment here: http://www.chicitout.co.nf/crochet-lace-skater-dress/ ...
0
votes
0answers
47 views

Reorder comments section in divi theme

I want to reorder the comment section in divi the current order is 1. Comment 2. Name 3. Email 4. url i want 1. Name 2. Email 3. url 4. Comment <?php endif; ...
0
votes
0answers
24 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 = ...
0
votes
0answers
15 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
29 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
19 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', ...
0
votes
1answer
9 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 ...
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
12 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
26 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 ...
3
votes
2answers
50 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
36 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
36 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
20 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
22 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
17 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
36 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
37 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
54 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
103 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
34 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
31 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
31 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
86 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
60 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
50 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 ...
0
votes
2answers
88 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, ...
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 ...