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

How to show recent comment on wordpress homepage with post title

I want to show recent 10 comments along with post tile on wordpress blog homepage. For this purpose i am searching since last two days but i am unable to find any solution, Can somebody tell me how to ...
0
votes
0answers
6 views

Sort comments in backend by meta

I have a meta value named, that I add to all of my comments for a specific post type. This subject is auto populated with a value that tells me the current situation of the post, when the comment was ...
0
votes
1answer
26 views

How can I return the result of my custom function?

I have used the following source code to add an extra city field to my WordPress comment form: <?php /* Plugin Name: Comment meta data test Version: 1.0 Plugin URI: http://wpengineer.com ...
0
votes
1answer
8 views

SELECT SQL_CALC_FOUND_ROWS with wordpress search

When I make a search on my site no posts are retrieved and through wordpress debug I get this error message: WordPress database error: [Table 'theme_se.wp_comments' doesn't exist] SELECT ...
0
votes
1answer
27 views

if null or int(0) value to 0

I am trying to get comment count. it works fine. but "0" value is not getting properly. it comes with empty or null. $comments_count = wp_count_comments(get_the_ID()); $...
0
votes
0answers
8 views

Comments submit button redirects to blank screen

When users try to comment on my blog posts they get redirected to a blank page (http://www.morebeyond.co.za/wp-comments-post.php). How do I fix this? I am not a developer, just admin.
-2
votes
1answer
35 views

How can I show the positive and negative comments for a same post separately?

I am working on a page in which the user will be able to choose whether he/she wants to see the positive feedback or the negative ones only. Whenever any user opens a post and moves over his cursor ...
0
votes
1answer
29 views

Generate Sub-Comments with WP-CLI [closed]

Using wp-cli, it is possible to generate random comments for posts. Is it also possible to generate sub-comments? If so; how?
0
votes
1answer
56 views

Adding second comments.php for reviews

I've just started a business directory website. I'm using a custom post type for this. I'd like to extend the site's purpose by allowing visitors to add reviews on each business. I therefore wondered ...
0
votes
1answer
12 views

Newest comments first not working

I'd like to have my newest comments listed first but nothing seems to be working. In the dashboard I set In comments.php I have <?php wp_list_comments(array( 'reverse_top_level' => true, ...
3
votes
1answer
80 views

Comments to Custom Post Type

I'm switching to a new theme which uses the custom post types: Question (as posts) and Answer (as comments to posts). I have converted current Posts into Question using a plugin. Now, I have to ...
7
votes
1answer
70 views

Why are comments and trackbacks still getting through for custom post types?

We have a site where we don't want comments or trackbacks. We've done the following to disable trackbacks: In Settings > Discussion, unchecked "Allow link notifications from other blogs (pingbacks ...
4
votes
2answers
43 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 ...
-1
votes
1answer
19 views

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

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
15 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
20 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
14 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
33 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 (preg_match('/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/...
6
votes
2answers
225 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
38 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
34 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
35 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
18 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
34 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
16 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
32 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
73 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
27 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
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
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
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', 'open',...
0
votes
1answer
12 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
13 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
35 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
52 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
41 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
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
25 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
18 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
43 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
61 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 ...