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
1answer
9 views

How to auto empty comment trash after X days

I know how to programmatically delete comments that are X days old but they then go to the trash. How do I empty the comment trash every X days? function ...
0
votes
1answer
15 views

I cannot view the comments

I recently developed my wordpress site www.fingeroffury.com for blogging. I have put up a couple of posts which have garnered comments. Unfortunately the comments do not appear on individual posts. I ...
0
votes
1answer
11 views

Ajax Comment Upvotes - Votes don't always register

I'm trying to create a simple ajax-based comment upvoting system for Wordpress. I've managed to build most of it, but now it seems that most of the time the upvotes don't register. They do register ...
0
votes
0answers
7 views

How to hide wordpress post comment and add some text before and after the list of comment?

In my WordPress site I am showing all comments of each post in comments.php file using this code: wp_list_comments( array( 'style' => '<div>', 'per_page' => 10,...
0
votes
2answers
37 views

The colour of comments has changed on my wordpress site after an update [closed]

I noticed that the font color of the comments I have received on all my posts have turned grey; how would I go about changing this to a standard white? I am using WordPress and the website is: https:...
0
votes
1answer
24 views

Comment System showing different type of IP

I am observing different type of IP in comment. IP is like this 2409:4064:695:f112:bb92:1b9a:de27:d3fb Website is nvshq.org Is this any type of spam or security concern?
0
votes
1answer
24 views

Can't get ID of post that relates to the comment

I added custom checkbox to the comment form. I am trying to write the post ID of this comment in the database. But without success. I'm trying with something like this: add_action( 'comment_post', '...
0
votes
0answers
45 views

how can I send comment_id to a function of my plugin [duplicate]

I want to receive $comment_id in my custom function in my plugin. I mean when a user submit a comment, I need to pass $comment_id to add_custom_comment_page(). How can I do that? inside my plugin: $...
0
votes
0answers
13 views

how to set 2 meta_keys for a comment and get them related to 2 meta_keys

I want to set 2 meta_keys and meta_values for comments. I have a page called devices. in devices page, there are a lot of devices. when user click on each specific devices, it redirects to a specific ...
0
votes
0answers
7 views

Filter unanswered comment on admin view

Good morning, I would like to know how to add a filter, in the comment manager page, with which to display only the comments that have not received any response. In this way I can decide which ones ...
0
votes
0answers
40 views

How can I enable comments on category page but not home page?

I would like to enable user comments for posts in one category only, and only on the page for that category (category-$slug.php). Comments should not be enabled for those posts on the home page. What ...
0
votes
0answers
21 views

comments_template() not working, even after wp_reset_postdata() is called?

Hey guys I can call comments_template() at the top of my app and it works. But when i try to call it at the bottom it is empty. Here's what I tried: calling wp_reset_postdata() after each loop. No ...
-3
votes
2answers
29 views

how to remove post comment box from my website? [closed]

i want to remove comment section from my home page of website
0
votes
0answers
38 views

Assign comment author link with profile link

I want to assign comment author link to author profile link (if comment author email is registered). Profile permalink is /user/UserName I've come over this code which is link to author posts url- ...
0
votes
1answer
43 views

Why is comments_template() working without a comments.php file?

I want to be able to style the comments section to work with the theme I am building. I do not have a comments.php file in the website however when I include: <?php if ( comments_open() || ...
1
vote
1answer
22 views

comments.php keep comment date/time but remove date/time's #hyperlink

I've googled this issue and can't seem to find a solution... In the comments, I'm trying to remove the hyperlink from the comment date/time where when you hover over the comment date, it hyperlinks (...
0
votes
0answers
15 views

How to create custom administrator panel page or subpage?

I'm struggling with creating custom subpages in wordpress admin panel. I'm interested in creating any custom subpage, which is going to look like a default administrator screens with some ...
0
votes
0answers
28 views

How to disable comment flood temporarily in a single scope

I am flooding comment with 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
20 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
24 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
15 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
14 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
24 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?
0
votes
2answers
34 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
37 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
32 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
53 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
12 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
6 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
29 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
58 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
37 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
42 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
21 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
40 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
33 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
13 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
17 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
40 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
20 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
34 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
37 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 ...