Questions tagged [comments]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
16 views

Loading comments in ajax - comment-reply function missing $args

I'm loading comments with AJAX. It all works fine except reply link isn’t being rendered on the page. As I understand, the problem is can’t pass $args. How would I access $args or max_depth outside ...
0
votes
1answer
29 views

Help with comments.php

I have a page with a shortcode that displays information from the database. I have set it up to allow comments on the page. The problem I am having is when I click Submit Comment, I get the following ...
0
votes
1answer
17 views

How to add commentary types or category for a post

I need to create three types of comments por a post. The idea is to not mix up all the comments and let the users comments for a particular subject of the post. So define comments type A, type B and ...
0
votes
0answers
17 views

Wordpress Comment Order By Number Of Replies

I would like to display comments based on the replies (comment children) $comments = get_comments(array( 'orderby'=>'comment_count_'.$post->ID, 'order'=>'DESC', 'post_id' => $...
0
votes
0answers
40 views

add blacklist moderation list inside pre_comment_approved filter plugin

i am using Comment Whitelist plugin to create a whitelist of email domains for autoapporing comments. It seems that the plugin overrides wordpress : Settings->Discussion options->moderation ...
0
votes
1answer
34 views

Custom sort comments with select form

I use ACF Pro to create a customized comments section with additional fields to my custom post type called Products (it's a simple page with a custom comment section, NOT using WooCommerce). Now ...
0
votes
0answers
5 views

How can I prevent users from commenting on a post after that post gets a specific number of comments?

I'm trying to figure out a problem I have. I need to prevent my users from commenting on a post after that post received 15 numbers of comments. In a way I want to set the maximum number of comments a ...
0
votes
0answers
21 views

send comment notification message to website admin and post Author

In my wordpress installation i have in discussion settings > Anyone posts a comment + A comment is held for moderation active. On my site all users that can write posts are set as contributors. I ...
0
votes
1answer
38 views

How to pass parameters in wordpress shortcode?

Everything is working fine and it's displaying the comments of the current page with this shortcode [wpdiscuz_comments] using the code below. function my_wpdiscuz_shortcode() { $html = ""; ...
0
votes
0answers
14 views

Disable Ajax features to trash, approve or spam comments in WordPress admin

I need to disable ajax features in WordPress admin panel. My website has a lot of visitors which participate and interact via comments, this kind of behavior exhausts the admin-ajax.php and uses too ...
0
votes
0answers
11 views

Use REST API in WordPress comments performance

My website currently having a substantial number of concurrent users, about 7K. I have Ajaxified WordPress native comments. Sometimes I am facing high CPU usage as the number of comments increases. ...
0
votes
0answers
6 views

Comment Moderation Settings Not Honored in Multisite

One of my subsites has settings that should let comments bypass moderation after having been approved: But this is not being honored. I have users (and they are authors too) on this site that have ...
0
votes
0answers
14 views

Is there a way to get comment number (count) in comment walker?

I'm currently building a walker for wp_list_comments() Is there a way to get the comment count (not comment number/id)? Or could I count the comments somehow? I know the ordered list provides ...
0
votes
0answers
21 views

Is there a way to export Wordpress comments to a non-wordpress, HTML coded site?

As the title says. I would like to recreate a Wordpress.org website I have, as a HTML coded site. Would like to export wordpress comments and import them to my new, non-wordpress site. Would be great ...
1
vote
2answers
79 views

How can I fix wp_insert_comment failure when 'comment_content" includes slanted apostrophe in Excel csv source data

For the purpose of transferring a very large number of user responses from non-WordPress to WordPress comments, I've been given a Google Sheet. Regardless of the method by which I turn the Sheet into ...
0
votes
1answer
14 views

If x comments in a post move post to category y

If a post has 0 comments do nothing. If a post has 1 comment move the post to category 1. If a post has 2 comments move the post to cayegory 2. If a post has 3 comments or more move to category x.
0
votes
0answers
5 views

how can I show product comments in other link like (product-link / comments)

I want to show comments in link like this : sitename.com/product-slug/commnets how can I make this page ??? for more descriptin : I have product page and my prodcut page have to show comments but I ...
0
votes
0answers
25 views

Edit Comments Fields

I need to edit the comments fields. 1 - The metadata should be only date; 2 - The comment itself should be trimmed; 3 - the word 'says' next to the name should be gone; I believe I can manage the ...
0
votes
1answer
32 views

Display the list of user's comments + the post title + date

I am trying to display the current user's ALL comments in a specific page and I'm using this code (uses a shortcode): https://blog.ashfame.com/2011/01/show-recent-comments-particular-user-wordpress/ ...
0
votes
1answer
17 views

Is there a hook to update / replace values in the “Enable threaded (nested) comments x levels deep” drop down?

I know how to add a value here that is higher than the max of 10 that is allowed as default (change the value manually in the wp_options table for the value 'thread_comments_depth'). However if I ...
1
vote
1answer
38 views

Set noindex page-comment from Pages 2, 3 and More?

I use All in one seo pack plugin. I see that Google indexed page comments (that are a pages generated from paginated comments). The example url are the followings: URL canonical - mydomain.com/url-...
0
votes
1answer
24 views

Add comment_id on Comments page within wp-admin

In the backend of WordPress, on the Comments page. Is possible to include a column for comment_id? Here is a visual of the locaton... ...perhaps to the left of the Comment column? If so, what would ...
0
votes
1answer
32 views

How to display custom comment fields onto any page

In the latest version of WordPress, if I added the following code to include a custom field to my functions.php file... function add_comment_fields($fields) { $fields['source'] = '<p class=&...
0
votes
1answer
18 views

How to tweak comment fields properly from functions.php

With the latest version of WordPress, I'm working in my child theme. I have enabled comments on a specific page. I can see OOTB I have author, email, website and comments input areas enabled. From my ...
0
votes
1answer
21 views

Random output of comments using a shortcode

It is necessary to display comments on the page randomly using a shortcode. Now I output comments using a shortcode using the code: add_action('wp_head', function (){ global $postPage, $post; $...
0
votes
0answers
16 views

Comments on posts with new custom post type redirected to another post

I've ran into a strange problem today. I created a new custom post type, "blog". Everything appears to be working correctly. However, when I make a new comment on a post under this new ...
1
vote
1answer
19 views

Removing the limit on the number of nested comments

Does anyone have a solution for removing the limit on nested comments? I've found on a site I maintain that there are a few comments where no "Reply" button is visible and since worked out ...
0
votes
1answer
16 views

How do I stop the comments going to my email?

Want to be able to disallow comments from going to my email. Thanks Jo
2
votes
2answers
104 views

Threaded commenting: how to show threads by last active first?

Hi all and happy holidays! I have a page on which I enabled threaded commenting. At present, the comments are ordered new to old by when the thread started: -Comment 3 -Comment 2 -Comment 5 -Comment ...
0
votes
1answer
6 views

Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked

The theme developer / customizer is not helping and I am an amateur in coding. For commenting on the page I need to be logged in as a wordpress user. Below code is from comment.php . Earlier i have ...
0
votes
1answer
16 views

How to edit the default comment title?

I want a code so when there are (or is) two comments on the post, it automatically changes the title to "Add Your Voice To The Topic!". What is the code for this?
0
votes
0answers
20 views

Add a 'Thank you'-message after comment has been submitted

How do I add a 'Thank you'-message, after someone submits a comment? The form looks like this: <form action="https://example.org/wp-comments-post.php" method="post" id="...
0
votes
0answers
35 views

Change the markdown for comments (output from wp_list_comments)

By using: wp_list_comments(), comments currently have this markdown: <div id="comment-1" class="comment even thread-even depth-1"> <div class="comment-author ...
1
vote
1answer
24 views

Show wp_die if url form comment not emply

I removed the url from in comment block, but spammers still post comments and add links. How to rejected comment if url not empty? Sorry fom My English.
0
votes
1answer
14 views

How to make email field not required in comments?

I need to make email field not required in comments, is it possible ? I know about this option: https://prnt.sc/vyt3s9 But then Name field will not be required to 🙁 Thanks!
0
votes
0answers
14 views

Comment form misplaced

In trying to format the post, reply form, comments and reply form to display on my Blog Page I am getting an 'incorrect' duplicate form (where the correct form should be placed) and the "correct&...
0
votes
1answer
12 views

Allow comments only for custom post type

I want to allow comments only for custom post types but not for normal posts or pages. What would be the best way to do that? I can think of one way that is a bit ugly. One would be to remove the ...
0
votes
1answer
20 views

How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?

We have all comment notifications being emailed into our ticketing system (Freshdesk) and it's getting a bit muddy because of the redundant notifications. What is currently happening: A site visitor ...
0
votes
0answers
6 views

Wordpress comment feed page not found getting coverage error in google consule

My Wordpress website Worker Voice "comment feed page not found" getting coverage error in google consule, It has been also observed any visitor not able to comment on any post getting "...
0
votes
1answer
38 views

Display date and time into post edit comments section

My users need to see the date and time for each comment from the post edit page. Can anyone help me to display these metadata please? Edit: When editing a post (cpt in my case) you can see the ...
0
votes
0answers
10 views

Adding an option to limit number of answers which can be posted to this code

How can I add an option to limit the number of answers which can be posted to this code? <?php $comment_vote = (int)$comment_vote; $comment_id = esc_attr($comment->comment_ID); $...
0
votes
0answers
18 views

How can I change “Leave a Reply” for “Leave a Reply (avoid Spam, all replies will be manually approved)”

I have a wordpress site with different pages. Users can write comments or replies in them. I have set it to "Comment must be manually approved" so, I personally decide what is shown to other ...
0
votes
1answer
13 views

Some WordPress Posts are automatically becoming comments on other Posts

This seems like a weird issue. I have published multiple posts on one of my websites. Sometimes, another post on my website (Post C) appears as comment under some other post (Post A). The content of ...
1
vote
0answers
18 views

Wordpress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]

Although I'm comfortable with coding I'm quite new to website building so please forgive me if I'm using clunky or inaccurate terminology. On my Wordpress website I installed the Redux plugin. It has ...
0
votes
0answers
9 views

Auto comment on WordPress post using a button

I want to display a button on all the post archives. When we click that button it should post a comment on the post with one predefined line of text. here is an example link but it's not on WordPress. ...
0
votes
0answers
15 views

How do I disable link previews in spam/comment moderation queue? [duplicate]

I'm using Akismet for spam in my site comments. Works great but, when I go to my spam box to look for false positives, I would rather not see mouseover previews of the porno sites that have collected ...
0
votes
0answers
13 views

Edit comment_post_ID on Review, Woocommerce

Here's the scenario: I have a product X. I have created 2 products, Y and Z, where Y is two units of X and Z is 4 units of X. Now, when customers buy Y or Z, they will make a review for Y and Z. What ...
1
vote
0answers
12 views

Can comments by a logged-in user be displayed at the top?

EDIT: I answered my own question! I was able to do this using 3 lines of CSS - thanks, flexbox! leaving this here in the hopes that it helps someone else someday :) .comment-list{display: flex; flex-...
2
votes
2answers
28 views

Why anything done on comments_array hook gets reset?

I am writing a plugin that will allow simple comment upvoting. I am trying to sort comments by the number of upvotes. But anything I do on the comments_array Hook gets somehow reset. My question is ...
0
votes
0answers
5 views

Unable to click on name and email box in comment session of my website and category archive title is showing in my category pages how can I remove it

https://exploreviotech.com/digital-marketing-a-new-platform-to-expand-your-business/ here is a link from my website you can check this issue in the comment box and here is the link of my category page ...

1
2 3 4 5
37