Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
21 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
30 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 ...
-1
votes
0answers
11 views

How Can I Show WP Comment on a Custom Page Using Action Hook?

I'm using a WordPress plugin to output a custom post type, which comes with a modified WP comment form with customized micro data snippet. Hence when comment is enabled from wp setting, the custom ...
0
votes
1answer
16 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
14 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.
-1
votes
0answers
17 views

Allow guests comments on single post - errors

I found a nice plugin allow guests comments who are not registered yet to comment only one single post. Other posts have to be commentable just for registered users. https://gist.github.com/thefuxia/...
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
10 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
21 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
10 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
26 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
23 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
52 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
12 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
11 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
62 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
31 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
19 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
39 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
16 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
13 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
24 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
22 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
27 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 ...
0
votes
0answers
13 views

Unable to view comments on my website

I apparently have several comments as the number appearing in the comment section on the dashboard for some reason I can't seem to view the comment.
0
votes
1answer
33 views

get_comments_number() giving wrong results! What are alternatives?

get_comments_number() function giving wrong results because of a plugin filter. Which function can be used instead of get_comments_number() ?
0
votes
0answers
30 views

Replace gravatar with user meta, by using filter

In this post, explains how to make my question. It filters user_avatar. I use same way with filtering user_avatar_url for using in <img src=""> Here is my code: function replaceAvatar( $url, $...
0
votes
1answer
37 views

How to check, if user commented before, on comment_post action?

I want check, if user commented post, in comment_post action. So i make this: function checkUserComment( $comment_ID ) { $comment = get_comment( $comment_ID ); $postID = $comment->...
0
votes
0answers
9 views

How to get terms by posts total comment count?

Is any way to make it? Just calculate posts comments total number and order terms by this. Is it possible? $termArgs = array( 'taxonomy' => 'category', 'hide_empty' => 1, 'orderby'...
0
votes
1answer
14 views

Limit Comment Line Count - Add Read More Button

Is it possible to limit how many lines of comment are displayed with the option to load more?
1
vote
1answer
53 views

How do I create comment-reply-button using <span> element not <a>

I'm currently working to design my first WordPress blog and I got stuck when I came to code comment-reply-button because I want the comment-reply-button to be coded in span element only not a element ...
0
votes
1answer
15 views

Comments stuck inside post edit, but not showing under the published posts

I recently migrated my site from blogger.com to wordpress using "blogger importer extended" plugin. Everything has been completed without issues, except this one. Many of the posts are not showing the ...
0
votes
0answers
17 views

Comment review not mandatory

I have a star rating system in my web, and I need comments to not be mandatory so that customers can review only using the stars. How can I do that? Thanks!
0
votes
1answer
33 views

how to SELECT for the current post id?

i am trying to get and count the values of a meta key (rating) and then calculate the sum. but the following code get all of values in wp_commentmeta table but i want to get just for the current post. ...
0
votes
1answer
89 views

how to have 2 comments_template() in one post

I have an issue in my new theme. my website is about Education for teachers and students. every post belongs to one teacher that students can talk to her/him via comments. now, i want to add a special ...
0
votes
1answer
12 views

Author name length character limit?

In comments, I want to limit author names. For example, the author's name should be no more than 10 characters. I'm looking for a way to do this. Thank you very much in advance.
1
vote
1answer
30 views

How to validate recaptcha on comments form?

I've added the following code to my function file to add the recaptcha, however I do not know how I can validate the captcha. /** * Add Captcha to Comments Form */ add_filter('comment_form', ...
-1
votes
1answer
23 views

list / show comments of post author in special page

i have a problem and i need you to save me really. i have many post authors with a lot of comments that every day is submitting. so i want to show comments that has submitted in every post to its post ...
-1
votes
1answer
41 views

Customize comment notification e-mails with HTML

I want to customize the default content of notification e-mails i found the following codes. but i need to use HTML in my own content. would you please make it with HTML? i do not know enough about ...
0
votes
0answers
14 views

Group Disqus comments per URL

My website has a dynamic post based on its URL params. Basically, it's a common post but its content has only a short code that builds the final HTML. It seems that the Disqus comments are bound to ...
0
votes
0answers
150 views

Errors while trying to add Disqus to WordPress manually

I've been trying to add Disqus to my website for a while now. And I've used the universal embed code they are suggesting in their documentation. I add it to my single.php page with my shortname and ...