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
4 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
9 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
0answers
18 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/ ...
-1
votes
0answers
10 views

my website is not ranking while url are indexed [closed]

I have a problem with my website. I have indexed the URL but my keywords are not showing in ranking how to solve this issue? please guide me in brief
0
votes
1answer
16 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 ...
0
votes
0answers
16 views

Restrict specific user for commenting if post has a specific taxonomy

today I tried a lot of things to fix this problem, I hope somebody can help me. I will explain my problem with example. : lets take i have a user named Maykl and I want to prevent Maykil to write ...
0
votes
0answers
13 views

WooCommerce reviews/comments in different languages [closed]

My shop has 8 languages. We have comments in Dutch, English, German, French for our products. For the other languages we don't have that much reviews. This is fine. I have created a seperate page to ...
1
vote
1answer
15 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
20 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
29 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
14 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
18 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
votes
0answers
12 views

Random date for all comments in the range of 2 days

Tell me, please, is it possible to somehow update the date of all comments? I need to update them every day, i.e. it is necessary for each comment to change the date to a random one in the range of ...
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
15 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
91 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
14 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
18 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
28 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
23 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
13 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
34 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
8 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
16 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
14 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
7 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
12 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 ...
0
votes
0answers
22 views

Different comments section for different user roles

I have website. in this website people can post complaints about customer satisfaction of companies. Company and complainer (who is author of this complaint post ) can do discussion under post. so i ...
0
votes
0answers
7 views

How to get top-level comment_ID from children? [duplicate]

I would like to know how to find the parent comment_ID from and Child or Grandchild comment. Please explain your answer so I can understand how to implement this into my plugin. Thanks!
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
27 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 ...
0
votes
0answers
23 views

Disable comment flood protection for specific post type

I am trying to disable comment flood protection for a specific custom post type. So far I have tried the following: function filter_comment_flood_filter( $false, $time_lastcomment, $time_newcomment ) {...
0
votes
0answers
10 views

Easiest and most elegant way to make comment form appear as popover (using ajax preferably)

What is the most simple/robust/elegant way to make my comment forms appear as a popover modal? I have many CPT elements appearing on the page, so AJAX would reduce the initial load time. Here is the ...
1
vote
0answers
58 views

Comments invisible after moving Wordpress to new server, while commenting still works

I moved a wordpress installation from one server to another. I dumped the DB, copied over all the files, put all DB data into a new database, changed wp-config.php to the new database info, and after ...
0
votes
0answers
17 views

How are certain words allowed in comments?

I want to improve Wordpress blacklist. Wordpress suspends the comment when it catches a word added to the blacklist. But this creates some problems. Because wordpress makes a match. For example, let's ...
0
votes
1answer
37 views

How is the author's name given a different color?

Author's and visitors' names use the same color in comments.The point here is that the color of the author's name is different in the comments. For example, in visitor comments, name is red. But, the ...
0
votes
0answers
17 views

How to display comments in tabbed page

I have some custom woocommerce product page. I added some tabs (in functions.php) like this: function single_tab_callback( $tabs = array() ) { $tabs['extra_tab_kom'] = array( 'title' =&...
1
vote
1answer
101 views

How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]

I am building a site that uses the WordPress Plugin Thrive Comments. It allows people to sort the comment by Top Rated, Newest, or Oldest. Digging into the code I can see that Top Rated is sorting ...
1
vote
0answers
25 views

Why does my callback function not work with this custom filter hook?

I'm trying to add a new key/value pair to my comment in the database by using a filter found in a WordPress plugin. This is the function where the filter is defined: /** * Parse comment before db ...
0
votes
0answers
7 views

How can I display an “Add a Comment” button rather than the full comment form on the bottom of each post?

I'm building a Wordpress site which allows for anonymous user commenting. Rather than always displaying HTML form fields at the bottom of each post, I want to display a link or button that says ...
0
votes
0answers
9 views

Need help with disabling comments

I want to use only reaction emoji and disable comments is it possible? If so how to do it?

1
2 3 4 5
37