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)

1
vote
1answer
455 views

edit comments capability for authors

I am using wp site where registered users have authors roles. I want authors to have permissions to edit their own comments. Now only admin user have capability to edit comments and even editors do ...
0
votes
1answer
17 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
82 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
3answers
664 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
4answers
526 views

Comment as post - understanding wp_list_comments

I'm creating a site where a central question will be posed on the front page with excerpted first-tier comments linking to a page with the full first-tier comment, presented almost as a post, with ...
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
20 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() ) : ?> ...
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 ...
1
vote
1answer
414 views

Allowing users to edit their comments

How can I allow users to edit only their comments? I tried some plugins like "WP Ajax Edit Comments" but users could edit all comments.
0
votes
4answers
4k views

How to add editor-style.css styling to wp_editor on front end for comments

How can I apply my own css (to match editor-style.css) to wp_editor being used on the front end for comments? Currently I'm using code from here to enable the visual editor for comments. My actual ...
2
votes
1answer
45 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 ...
0
votes
0answers
609 views

change text written in english into hindi

i want to change the text written in english into hindi inside my search bar, i am developing a hindi newspaper website by using wordpress cms so when user type in english to search related news in ...
-2
votes
1answer
1k views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general I'...
1
vote
1answer
412 views

Display User Role Next To Comment

I've search around but I can't seem to find exactly what I'm looking for and for the first time I don't even know where to start. How do I display the user role (Admin, Editor, Author Contributor, ...
0
votes
2answers
491 views

stumped on add_action hook to delete_comment - any ideas?

I'm trying to run a function when deleting a comment. This entails hooking into "delete_comment" if I'm not mistaken. Theoretically, this should work as a plugin, so when you delete a comment, it ...
-1
votes
0answers
10 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
25 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
43 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
43 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
62 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 ...
2
votes
1answer
890 views

How to display comments on different page

I am creating a reviews site and I want to display the customer reviews (comments) on a separate page from the single-restaurant.php. I'll just have a link that says (Read reviews/ add yours). I ...
0
votes
1answer
4k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: '...
1
vote
2answers
612 views

How to use the 'comments_number' filter?

I'm not sure how to use this filter. Could someone show me an example? I'm trying to change ('0', '1', '%') to ('0 Comments', '1 Comment', '% Comments'). I'm using this function to get the comments ...
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
1answer
560 views

Check the Comment in Reply or Normal State

I'm currently working with custom comment meta, and I have some custom additional field such as rating etc, when user write a comment ( not comment reply ) I want to show the rating field, but when it'...
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
34 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
15 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 ...
0
votes
1answer
264 views

Comment reporting for Multisite

I'm trying out the two comment reporting plugins that I know about in a multisite installation. AJAX Report Comments Safe Report Comments Both don't work - various javascript errors and (I assume) ...
0
votes
0answers
34 views

How to create a designated comment page with custom fields

I'm creating a site where I want to use the comment box to auto-generate a FAQ page. In essence, when a comment is posted it won't appear on the same page as the comment box. Instead, it will be ...
0
votes
1answer
472 views

Insert image in comment reply

I have searched everywhere but can not find a plugin that allows users to upload an image into their Reply to a comment. It is a photographic blog so has to have this ability. I did try a couple but ...
24
votes
10answers
2k views

What tools are available for managing/writing to WordPress? [closed]

Aside from the actual WordPress dashboard, what tools are available for writing posts, moderating comments, and otherwise administering your site? Please identify whether you're referencing a desktop ...
1
vote
3answers
44 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->...
0
votes
1answer
40 views

Wordpress comments - delimiter “/” not found

I'm using WordPress comments as a "chat". Not real time chat, it's more like comments with more flow. But when 4-5 or more members are using coments at the same time, I get this message: Not sure ...
-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
29 views

Comment form unset email

I want to remove the URL and email field from the contact form. I have removed using following filter: add_filter( 'comment_form_default_fields', 'filter_comment_fields' ); function ...
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
2answers
548 views

Actual comments not showing, but form is?

I have edited the comments form to remove a few fields and now the approved comments don't show up, just the form itself. What am I missing from this? <?php $comment_args = array( 'fields' =&...
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
418 views

How to allow logged in users to post anonymously

I've been searching and searching for a while now to see if there's a way to allow people who are logged into my BuddyPress site to make a post on the activity section as "anonymous" or as their ...
0
votes
1answer
30 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
553 views

Pull & display new comments without refreshing the page

I've just managed to implement ajax on comment submission and now members don't have to leave the page when they comment but still have to go one extra mile when they want to see new comments. I've ...
0
votes
0answers
10 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
38 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?