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

How are readers authenticated for leaving comments?

I'm thinking of creating a WordPress blog, not on WordPress.com but just using WordPress on a hosted website. I would like to allow comments on the blog, but was wondering in what way are commentators ...
0
votes
1answer
20 views

Add a filter to get_comments_link()

I am trying to change the permalink #comment-xy to #customname-xy. When i change the corefile comment-template.php on line 754 to $link = $link . '#customname-' . $comment->comment_ID; I achieve ...
0
votes
0answers
5 views

Qtranslate custom comment fields labels translation

Recently I asked "how to add custom comment fields with the right order" and recieved a good answer. This method uses php class with 2 filters: comment_form_fields and comment_form_field_comment . But ...
0
votes
1answer
20 views

How to get Post title by locale with Qtranslate-X

I need to send 2 emails, when new comment is posted and when new comment is approved. Site is multilingual and uses qtranslate-x plugin. Here is code, which sends email when comment is posted. In ...
3
votes
2answers
84 views

Remove “Comment” column in all post-types

I just want to remove Comment's column in all post-types and in a single function My current function , Have to do each post-type like this : function remove_post_columns($columns) { unset($...
0
votes
1answer
10 views

How to create post comment from different domain

Using an API plugin i have been able to build a site that combines content from multiple Wordpress websites. I want to give users the ability to quickly leave a comment for one of these posts without ...
0
votes
0answers
9 views

How to display comments “Duplicate comment detected” error message in same page

I developing a site. In a comments page, all the validation errors messages are shown in new page instead of same page. So I used jQuery validation plug-in for empty fields, and it is working ...
0
votes
1answer
16 views

Ajax Comment: Page reloads whenever the comment submission form is reloaded

I noticed that when I'm trying to comment too fast in a page it's getting reloaded. I want to avoid reloading the whole page just because someone submits comments too quickly but I don't know where to ...
0
votes
2answers
21 views

Trying to get property of non-object notices in comment-template.php

I need some customization of WORDPRESS comment area, so I've used this code in my child theme : <div id="comments" class="x-comments-area"> <?php if ( have_comments() ) : ?> ...
2
votes
1answer
48 views

Add comments meta fields to comments metabox on post edit screen

I have few custom fields in comment form. How can I add these fields to comments metabox? I divide my question on 3 parts: 1) How to remove url field and add custom comment fields to comment quick ...
-1
votes
0answers
11 views

import a wordpress page's comments as woocommerce product reviews

I have a wordpress page with 600 comments in it. I want to have all these comments as reviews on a product in woocommerce. How can I do that? I also know a little about PHP and mySQL.
0
votes
1answer
26 views

Send email messages after comment was submitted

I need to send 2 email messages: if comment was submitted and when comment was approved. Without any plugin of course. How can I do this?
0
votes
4answers
45 views

Check if comment was successfully submited

Is there a way to check that comment was successfully submitted? I want to display some text or hide a comment form for example if comment was succesfully submitted.
0
votes
1answer
51 views

Comments form custom fields order

I'm trying to add 5 custom fields to comment form. Just use 2 hooks to display custom fields after default fields - 'comment_form_logged_in_after' and 'comment_form_after_fields' like this: function ...
0
votes
3answers
63 views

Only subscriber role user can comment not other

I have marked the option - " Users must be registered and logged in to comment " in Admin panel Setting -> Discussion section but i want only subscriber role user can comment not other roles type ...
4
votes
1answer
42 views

Programmatically block commenting by restricting view of comment form

A forum bridge plugin has the following: // Check role is_banned (int 1||0 ) if ( $this->visitor['is_banned'] === 1 ) { // remove capability from the user and any roles ...
0
votes
0answers
10 views

Comment Reply not loading

The nested comments feature is enable in my settings and I have the following block of code inside my functions.php function my_scripts() { wp_enqueue_script( 'main', get_template_directory_uri()...
0
votes
1answer
13 views

How to get the 5 most recent comments and each comment 5 most recent replies (children)

I want to get the 5 most recent comments and each comment's 5 most recent replies (children) in descending order. With the following code I can get the 5 most recents comments but it won't distinguish ...
0
votes
1answer
17 views

Get Post ID within wp_set_comment_status hook

I am trying to update meta_value whenever I manually approve a comment inside the WordPress dashboard. I could not figure out how to do it dynamically, but it is working when I manually add a post ID: ...
-1
votes
1answer
36 views

Pagination comments

For some odd reason, I can't seem to make the pagination work for comments. $args = array( 'post_type' => 'products', 'status' => 'approve', ); // The Query $comments_query =...
-5
votes
0answers
16 views

How to remove wordpress comment form text “Your email address will not be published”

I want to remove wordpress comment form text Your email address will not be published. without editing function.php. Is there any working way to do this?
0
votes
1answer
26 views

Comment Approve - Add custom function when comment is approved

I would like to save some PHP memory when quering category page (like 5000 products at once) with average review rating, so I would like to save average rating of reviews every time I will manually ...
1
vote
3answers
45 views

How to check if comments are paginated?

I'm trying to determine if there's more than one page of comments in single.php. In archive.php I can do something like this to check if there's more than one page of posts: if ( $wp_query->...
-1
votes
1answer
20 views

How to show recent comments on WordPress homepage with post title?

I want to show 10 recent comments along with post titles 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 ...
0
votes
0answers
7 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
28 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
11 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
31 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
12 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
39 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
31 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
60 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
13 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
84 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
76 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
44 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
21 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
15 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
34 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
241 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
42 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
37 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
16 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
39 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
21 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
36 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 ...