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.

0
votes
0answers
9 views

How to disable comment flood temporarily in single scope

I'm flooding comment in my plugin in a reasonable manner: function log_my_comments($post_id) { $my_comments = get_my_comment_data($post_id); foreach($my_comments as $my_comment) { ...
0
votes
1answer
18 views

stop url changing when user comments

When a comment is posted on a blog post the url of the page changes. Is there a way to prevent this from happening. I need to show my post in a popup and it is replying on the url, when a comment is ...
0
votes
1answer
22 views

wordpress admin ajax trash_comment

I'm trying to add a trash_reason when someone delete a comment from the wp admin. I managed to add a thickbox with a dropbown listing deletion reasons and passing / updating the value of selected ...
0
votes
1answer
10 views

Disqus comment system not show

I've installed the disqus comment system plugin. I need some help to use it, I'm not able to display the comment box inside my post or pages. I'm using a custom theme, and there is no a comment.php ...
0
votes
1answer
13 views

How to allow more HTML tags in comment for a certain comment_type

I'm using a custom comment_type for my plugin and that comment type is connected to only a custom post_type. And now I want to add the TinyMCE Editor to the comment section, and want to allow more ...
0
votes
1answer
13 views

Yoast makes comment_reply_link function output plain link to comment instead of reply link

EDITED - I discovered that my problem only arises when the Yoast plugin is active. But I want to keep Yoast active, so my updated question is: Any idea what to do for comment replies working while ...
0
votes
0answers
13 views

Closing Comments conditionally in comments.php

I have a website running shapely as my theme, and I am trying to allow only logged in members to see comments on a post, and restrict anyone but administrators from commenting. I would like comments ...
0
votes
0answers
23 views

how to make author to write comment only his own posts?

i want restrict my registered authors to write comment to other posts except his own posts. Is it possible? I have no idea how to do it. May be need conditional logic but how?
-1
votes
0answers
9 views

wpDiscuz acf image field as a user avatar

i use wpDiscuz for user commenting.. and useing ACF image field for user avatar. problem is that wpDiscuz use gvatar for user avatars. But i want to use Advanced custom image field for user avatar . ...
0
votes
2answers
32 views

How can I automatically delete comments that contain a URL?

My WordPress website is being bombarded by spam comments. Nearly all of them contain a valid URL. How can I delete these comments automatically? I don't want to put them into the review queue; I just ...
-3
votes
3answers
35 views

Is safe to use native WordPress comments system? [closed]

Native WP comments system requires only display name and email to leave a comment. So if I know the email of a "well-known" person, I can leave a comment using his/her identity (and gravatar also). Is ...
0
votes
0answers
17 views

How add user role level in comments?

I have a forum site. I want to display user role badges in comment section. What function code should be add?
1
vote
2answers
35 views

How can change wordpress comment reply text for specific pages only?

Anyone know how can I change the comment reply text in wordpress to only reflect on specific pages only and not the whole site? For example the default text site-wide is “Leave a Reply”. But for some ...
1
vote
1answer
28 views

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
0
votes
0answers
33 views

How to remove placeholder text from the WordPress default comment form?

I have modified my WordPress contact form using comments.php to remove the “Name” and “Email” default placeholder text from inside their corresponding fields. Unfortunately, I am now struggling to ...
0
votes
0answers
11 views

Comment input hiding when clicking on reply link

I am building a wordpress site. There I noticed when I click on 'Reply' link in wordpress comment section, the textarea for posting the comment hiding. I need to show both comment textarea and reply ...
0
votes
0answers
5 views

Restrict authors from viewing each other comments in the post

As the title says im trying to find a way to restrict what authors can see. Im using custom posts and Authors can view each other posts but how to hide the comment section if the post is not owned by ...
0
votes
1answer
25 views

Warning and fatal error

I am getting this error when running my website : Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'sanitize_comment_cookies' not found or invalid function name in ...
0
votes
0answers
12 views

Insert Content every X Comment

I'm looking to insert a CTA to users every few comments to encourage sign up to take part in the discussion. Is it possible to insert content after every 10 or so comments?
1
vote
1answer
30 views

How to add a title field in comments?

Just like WP posts have title and text, I want to have titles to my comments. Now how do I add it and show them above the comment texts like a title. I need it to have a css name as well. The title ...
0
votes
0answers
34 views

How do I add comment number to RSS display

I am trying to show the RSS feed from one of my sites on another one of my sites. Thanks to the great folks here, I was able to get it to work, and things are almost exactly how I want it. The one ...
0
votes
1answer
25 views

Difference between date and date_gmt

In my database comment_date and comment_date_gmt are different. comment_date is in UTC+3, but comment_date_gmt in UTC+0. Why? What do I not right? When I leave the comment I can see "You left a ...
0
votes
0answers
18 views

Customize wp_list_comments() function to show part of the comment and put show more

Team. I have a comment section, some of the comments are long. Is there a way to customize the comment to show only 20 words and have a continue button to show the whole comment.
0
votes
0answers
15 views

How is it possible to create Multi part sections where people can answer or comment or vote on various parts of a page's content as given example?

How is it possible to create Multi part sections where people can answer or comment on various parts of a page's content as given example? Using this as a reference example (can attach screenshot if ...
0
votes
0answers
13 views

Email content as comment

I am trying to develop a ticketing system. Can I capture reply email content to my ticketing system as comment?
0
votes
0answers
19 views

Disallowed Tag Present in AMP Wordpress (<comments></comments>)

We have a Wordpress blogging website with AMP (Accelerated Mobile Pages) Enabled into it. We are getting this error on Webmaster that the site (AMP Version) is not crawlable. It states that there is ...
0
votes
1answer
25 views

Pending Comments

How get ID all pending comments wp ? I want realizate via loop php, but i do not how get it. wp_get_comment_status - function is returend only trash', 'approved', 'unapproved', 'spam' status.
1
vote
1answer
11 views

How to insert a comma to the child comment construction in function.php?

I insert the name of parent comment's author in child comment if( $comment->comment_parent ) comment_author( $comment->comment_parent ); How to insert a comma to this construction in ...
0
votes
0answers
14 views

Facebook comment does not appear on website

I have tried several Facebook comment plugins on my website but none of them are showing up comment box. They were showing earlier though, have no clue since when it stopped working. I also tried to ...
0
votes
0answers
34 views

Error when approving comments

When I approve a comment, I get this error message: Warning: call_user_func() expects parameter 1 to be a valid callback, function 'skt_elastic_comment' not found or invalid function name in /usr/...
0
votes
1answer
18 views

Comment status shows 'closed' in db, but it shows 'open' when i echo it

Here is database ss. And comment_status is closed But when i print it, it shows open echo $post->comment_status; Also, in page settings, comments checkbox is unchecked. So, i can't hide ...
0
votes
1answer
26 views

Attaching author tag to the comment

I have found how to highlight comments made by author of the post. However, could not achieve to attach simple text saying this is author for each comment replied by the author of the post.
0
votes
0answers
36 views

All comment automatically added as spam comment, how to set that problem?

All comment(all post) automatically added as spam comment. Our same project set in two server, but in one server project blog comment working proper and another server project blog all comment added ...
-3
votes
1answer
53 views

Why nobody is answering my question? [closed]

When I ask a valuable question nobody bothers to answer me. It has been a week since I posted a valuable question in this forum. When my question has some errors immediately everybody identifies it ...
0
votes
1answer
13 views

How do I edit Comments.php so I can add Schema markup to comment output?

I can only find posts to edit the input and related fields. How do I structure my edits to include proper schema markup? (I have written out what that should be)
1
vote
0answers
19 views

How to create a seperate commenting system?

I'm planning to add a question and answers (custom post type) to my website. I already use my default WP comment system on my posts. Now I want a custom content type for my question post type to be ...
0
votes
0answers
16 views

Get Specific Product ID WooCommerce Comments

I am trying to place the WooCommerce comment fields but for an specific product id <?php global $withcomments; $withcomments = true; comments_template( '', true ); ?> And this custom field ...
1
vote
2answers
75 views

Adding ads code between comments

I am showing comments on my page. I want to show 1 ad after every 2 comments. <div class="panel-ads clearfix"></div> it's repeating the number of comments. I would like to add the ad ...
0
votes
2answers
56 views

How do i remove “Website” field from Wordpress comments

i have two websites i use Wordpress comments on one website and jetpack comments on another. Both websites shows website column, how do i remove it to save my site from giving unwanted backlinks ?
0
votes
0answers
23 views

paginate_comments_links is not working!

i have problem with comment pagination. i set the options in Settings → Discussion (e.g: one comment for every page) but it is not working anymore!!! my single-news.php is so: <?php if(...
0
votes
0answers
16 views

Wordpress weird behaviour on comments

Every time I make link in one of my posts (post B) to other post (A), The post A gets a comment that it's content is a section of Post(B) that contains the title of the link I've made. As an example ...
0
votes
0answers
121 views

How to get_comments() ordered by date and parent?

So my starting point is: <?php $comments = get_comments(array( 'post_id' => $post->ID, 'status' => 'approve', 'type'=>'comment', '...
0
votes
0answers
17 views

Consecutive comments on WordPress take a 10 second gap before being able to comment again

When I try making multiple comments on my app, It requires a 10 second gap at least before making a second comment. If I try making an immediate comment after saving the first one, The new comment is ...
0
votes
1answer
15 views

Subcriber getting multiiple notifications for new comments

This the email i received from a subscriber, i am not sure how to prevent multiple emails from going out.I do not use a plugin just the WordPress native comment mamagent “Notify me when new comments ...
-1
votes
1answer
12 views

How to get the actual time, without the time

At this moment I am busy writing a widget, you can place on each page. One of the problems I am facing, is that I want to remove the time from the comment. foreach (get_comments($args) as $response) ...
0
votes
2answers
25 views

Comments are in database, don't show up in WordPress backend or frontend

I am in the process of rescuing the content from a WordPress site with a bloated/damaged database. Everything has gone according to plan except for the comments. I can see that the 4000+ comments are ...
0
votes
1answer
26 views

Only allow the post author and admin to comment on a post

I've searched the interweb and stackexchange high and low and found nothing on how to restrict comment submissions to 1. the post author and 2. the admin.
0
votes
1answer
23 views

How to prevent users/authors from seing IP/email of new commentators?

I have a plugin on my WordPress installation that allows users to suggest ideas. This results in them becoming the author of a post (although their role is still just "subscriber"). I received ...
0
votes
1answer
49 views

Why are my threaded comments not quite working? [closed]

I had to switch from DISQUS as it got blocked in China and thus doesn't work and slows page loading down. I had hundreds of comments some were threaded, I got them to display correctly, but if I add a ...
0
votes
0answers
16 views

No comments allowed

my posts won't allow commenting. I have checked the discussion > Allow comments and Allow trackbacks and pingbacks on this page in my post settings. I also checked settings > discussion > Default ...