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
0
votes
0answers
8 views

What is the best way to grouping comments in wordpress?

In WordPress, I want to group comments by a numeric value to use each of the groups in a special parts that I want. Any of my groups have a numeric value as identifier. For example, I want to put ...
-1
votes
0answers
10 views

can built custom post type instead of comments

can I put custom post type as comments is there any method? cause I tried a lot of codes but no one worked
0
votes
0answers
25 views

comment just attachment .. reply just text … can I do that?

I want comments just to upload videos without text but replies the opposite I mean comments just to upload videos.. without text area ... in replies its a must to write in text area without any ...
0
votes
0answers
14 views

Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order

Hi fellow Code Poets ) I wanted the pagination links numbers to be in the order opposite to the pages they lead to. The link leading to the last page had to read 1, and vice versa, etc. I've written ...
0
votes
0answers
18 views

Adding a new field to already posted comments

I want to add a checkbox (verify) to each comment so that the author of the post can verify each comment. The checkbox needs to be read-only to anyone but the author of the post. I've found different ...
0
votes
0answers
14 views

Wordpress (php) comments pagination

Is there a way to show in the first page (of comments) the last received comments and in the second page the olders? I used the settings -> discussion -> selected options. With it i can select ...
0
votes
0answers
19 views

Remove hash link on comment date on wp_list_comments

I tried to find a solution but I don't found nothing. I'd like to remove the hash link that wp_list_comments automatically generates. In particular, if an author post a comment, my wordpress generates ...
0
votes
0answers
20 views

New comment not showing up (only for logged out users)

The problem is: Native wordpress new comment not showing up on any post (only for logged out users). Discussion settings that are checked (The rest are unchecked): Attempt to notify any blogs linked ...
0
votes
0answers
10 views

Comments: How to add “Reply to [Original Commenter's Name]” with link

I'm using the standard WordPress comments, with the Subscribe to Comments Reloaded plugin. The top of my comments currently look like this: [Avatar] Commenter's Name I'd like to add some hook to my ...
0
votes
1answer
21 views

How to change the comments form title based on post type

I know how to change the title of the comment form by using comment_form_defaults, but I don't know how to make it different for a custom post type from a regular post. Also I would like to have the ...
0
votes
1answer
32 views

Is there a way to link to the BOTTOM of the comments on a wordpress page?

We're using a free account on wordpress.com. On our site's main page, we have this HTML: To contact us <a href="#comments">send us a message in a comment</a>. Clicking on this ...
0
votes
1answer
17 views

Automatically register users with comments

I would like to know if it is possible to automatically register a user who writes a comment so I can send them a coupon as a registration reward, I try few plugins but didn't get any result! Or maybe ...
0
votes
0answers
17 views

Comments only displaying when logged in

I am using the theme colibri for my site/blog and I have set it so the comments will display at all times, logged in or not: The site is: https://www.miniatureartacademy.com/2021/04/20/minotauro-pt4/ ...
2
votes
1answer
36 views

Sanitizing comments or escaping comment_text()

I'm creating a template for comments on my WordPress site. I noticed that a simple <script>alert(1);</script> slips through the default WP codex implementation of comments, using the ...
0
votes
0answers
12 views

display comment type count of post single page

I have comment type. when author marks any standart comment. standart comment convert to sticky comment type. but how can I display sticky comment type. This stikcy comment is used as accepted answer ...
0
votes
0answers
17 views

Is it possible to give a classname to specific comments in the Wordpress admin?

Is this possible? I'd like to go into wp-admin, click on a comment and give a class for a specific comment. Would it be possible to do so? If so, could you please help?
1
vote
1answer
20 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
32 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
18 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
45 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
36 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
31 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
47 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
15 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
12 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
24 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
80 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
6 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
30 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
35 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
19 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
65 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
25 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
33 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
19 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
23 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
31 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
112 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
7 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
23 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
37 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
25 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.

1
2 3 4 5
37