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.

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

How can I add comments to a page?

How can I allow people to post comments on a page? I've put this into my page template: <?php comments_template(); ?> but it just says at the bottom of my page "Comments closed". UPDATE: If I ...
1
vote
0answers
37 views

Loading Comments From a Class?

I am not using the function comments_template(). Instead I am trying to load the comments from a Class. There is no comments.php file on the root. Comment Class namespace Core\Views; class ...
3
votes
1answer
69 views

Is there any advantage to emptying comment spam?

Is there any advantage to performance (or otherwise) for emptying comment spam from within wp-admin on any regular basis? I daily have been making sure that the comment spam queue is emptied out, but ...
0
votes
1answer
16 views

Posting XML in comment section

Users post XML data in my comments section frequently due to the nature of my content, but due to the way the comments work, the elements are consumed and do not appear properly. In fact, when I look ...
0
votes
0answers
12 views

Why do comments only come through on 2 of my posts and not the others?

Good day. I have posted 88 posts, however, comments only come through on 2 of the older posts. Why is this happening? It is really frustrating.
0
votes
0answers
28 views

Blank white screen after I log into WordPress Admin

I went to log into WordPress this evening and after inputting my user name and password I was redirected to the dashboard, however instead of seeing the dashboard I had a white screen with nothing on ...
0
votes
2answers
1k views

Getting comment count per post not working

I have this function: <?php $popular = new WP_Query('orderby=comment_count&posts_per_page=5'); ?> <?php while ($popular->have_posts()) : $popular->the_post(); ?> ...
0
votes
0answers
20 views

I tried to update a comment on my Wordpress Website

I tried to update a comment on my Wordpress website, After updation I noticed this was added to the email part of the comment. ...
0
votes
0answers
31 views

Display Comments list and a Comment form in home page inside while loop

I am trying to get a list of comment and a comment form in the home page inside while loop for displaying latest post which shows one latest post. I tried with <?php $withcomments = "1"; ...
4
votes
2answers
62 views

One comment per user per post but be able to reply to existing comments

I want to restrict my users to be able to comment only once per post but be able to reply to existing comments. How can I do that? I found this code which will do the half trick. With this code the ...
1
vote
1answer
306 views

If modified on same day, show only time

I have a date on each post and comment which shows the date of placement. If I edit it, it shows me the date of the post and the modified date. That's fine, but now, I want to show only the post date ...
0
votes
1answer
193 views

Add class to comment form div when comment-reply button is clicked

I'm using the comment-reply script to move the comment form under thread when replying to a specific comment. Comment form is being displayed in theme with: <?php comment_form(); ?> The ...
0
votes
1answer
34 views

How does WordPress generate a comment website preview?

In the WordPress comment que, hovering over the URL of a comment generates a preview of the website. How does WordPress handle this and does this generate a hit, or 'visit' to that website?
0
votes
1answer
116 views

Trying to post a wordpress comment on my site redirects to 127.0.0.1

My commenting system used to work fine, but now it redirects to 127.0.0.1 whenever I try to post one. Any ideas on how to fix this?
1
vote
0answers
55 views

changing comment-page-# to something like review-page-#

When you enable pagination for comments in wordpress the typical pagination page for a comment is "comment-page-1" "comment-page-2" etc. what I want is this to appear like "review-page-1" ...
0
votes
0answers
16 views

Comments closed only for contributors

I am having a very funny issue right now. My WordPress is currently with comments activated and it always worked, but now that I've opened the website for contributors, only their posts are coming ...
-2
votes
1answer
28 views

How to stop a specific person to comment on my blog? [closed]

I need to permanently prevent a specific person to comment on my blog on wordpress.com How can I do this, please ? My theme is iTheme2
0
votes
1answer
49 views

How to limit comment indentations to one level?

When you reply on a comment then that replied comment is indented. When you reply on the reply comment then that comment is indented a bit more than the previous one and so forth. I want to know ...
0
votes
2answers
579 views

Auto approve all comments (editor)

I unchecked both options in the discussion area (so the one where they need a post to comment and administrator has to approve), but still, my users can't put their comments without me approving it. ...
1
vote
3answers
4k views

Using filter to add additional fields to comment_form()

I want to add a field to the comments and have used these codes. functions.php function my_fields($fields) { $fields['url2'] = '<p class="comment-form-url2"> ...
0
votes
1answer
22 views

Two textareas showing up in comments.php

I have the following code to display comments, but there are two text areas showing up, not just one. Here is my code <?php $comment_args = array( 'title_reply'=>'Got Something To Say:', ...
1
vote
1answer
443 views

ol children instead of ul children

I've created a new walker class to display a custom layout when using the wp_list_comments(); function and this is perfect, the only thing is that all replies to one comment are listed in a <ul> ...
5
votes
2answers
1k views

Linking to Page Showing Only Comments Without Parent Post

I'd like to show post comments on their own page without the parent post. I know I can use wp_list_comments() on the single post page and pass a callback function to use my own comment display ...
0
votes
1answer
50 views

counting trackbacks, pingbacks and comments of a post

I wish to display the number of trackbacks, pingbacks and comments a post has. I've read all about them and I am wondering if there is a simple solution, that I am not seeing, available. I know that ...
0
votes
1answer
1k views

Disable Admin account being emailed for comment notification

I am using the code below to send Comment notification and moderation emails to multiple email addresses for a client site. I have a custom admin panel for this particular site. In my admin panel I ...
0
votes
1answer
61 views

Show comment pop up links as text only

I'm trying to show comments_popup_links() function as a text only,not as a link. Is it possible to prevent it from being a link. Below snippet creates links to the comment, but I don't want it to be ...
0
votes
0answers
8 views

add notification options for commentor before a comment is added

i want notification options when a user comments on wordpress posts or pages before the user clicks a reply/post/comment... button like the image below and also like to have a function according to ...
0
votes
1answer
35 views

child comments not displaying as nested

I'm having some trouble getting my comments to display as nested from other comments. My current max level of depth is set to 5 through the wordpress admin panel, but all my comments appear on the ...
0
votes
2answers
79 views

Cannot unapprove a WordPress comment

My client approved a comment in WordPress that she shouldn't have. I cannot for the life of me find a way to get rid of the approved comment, and it appears that there really isn't a way. I can ...
0
votes
1answer
702 views

Why are my comments closed?

I have a simple site with a few pages plus a blog. For some reason, the blog posts state comments are closed and I can't figure out why. I want to open the comments on all blog posts (and not offer ...
2
votes
1answer
75 views

List all posts commented by current user

I need a page to display all posts (in Foods custom post type) that have comments by the logged in user. The list just needs to show the title with link to the title. Is this possible? What I've ...
0
votes
2answers
42 views

comments_number fails to print

I want to display the number of comments on a post using the template tag <?php comments_number( $zero, $one, $more ); ?> However, for some reason this tag does nothing and it is ...
0
votes
1answer
48 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
0
votes
0answers
78 views

Allow Authors to edit all their own comments, even on others' posts

I recently found on my multiuser WordPress site that people with Author access can edit their own comments only if they are commenting on their own posts. As far as I know, this is all the edit_post ...
1
vote
1answer
97 views

php function to display commenter username or login

I want to display the commenters username or login name in a comment template. I know there is a function comment_author_link(), but this displays the "display name publicly as" name and not ...
2
votes
2answers
649 views

Using Disqus, how to stop storing comments in wp database?

I'm using disqus comments system, but it keeps storing the comments in the wordpress database as well. Is there way to disable option to store comments in wordpress database because I don't see any ...
2
votes
2answers
3k views

Comments not showing in custom post type - Wordpress

I've created a custom post type, and i want to display and allow comments. I have this in function.php : // Add Custom Post Types add_action( 'init', 'thm_post_types' ); // Add Custom Post ...
3
votes
2answers
331 views

Getting the comment number relative to all the post's comments

Any ideas how to accomplish this? Something like this would work, but if there are threaded comments you get the wrong number, because pages with threaded comments have actually more comments than ...
0
votes
2answers
43 views

How to deal with spam comments and distinguish them from non-spam comments?

I have something like 10000 comments. They are probably all spam except for one or two. And they are all waiting for me to approve them. Is there a free solution to this issue? Thank you!
0
votes
1answer
220 views

Comments not enabled for custom post types

I don't get this at all. I've looked online and I think I did everything I was supposed to, but my custom post type does not display a comments form. In functions.php. where I define the post type I ...
0
votes
0answers
124 views

How to limit one IP to post only only comment per post?

I'm making a review website. How can I limit one IP address to be able to just post one comment on the same post?
6
votes
1answer
2k views

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I'd like the users to see only his/her own comments and the comments that are left to ...
0
votes
1answer
146 views

How to check if post has previous_comments_link() and next_comments_link()

I'm using the following code for comments pagination (based on 2014 theme) <?php if( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <ul class="pager"> ...
0
votes
0answers
25 views

disable email notification for specific page

I would like to make the page with id = 2 that do not get notification mail that the message was written because I have on this page of me made to automatically approve comments. so i dont need ...
0
votes
2answers
51 views

page creator to leave comments ONLY

I am trying to set it so that the person who created a Page is the ONLY one who can comment on that particular page. This will be a logged in person. I haven't had any luck with Role Editor Plugins. ...
0
votes
1answer
92 views

wp_update_comment not working

I've created a custom comment editor and for some reason, wp_update_comment is not working. It returns 1, which means it should have been successful but it's not actually updating anything. Listed ...
0
votes
0answers
24 views

comment_karma. Archived info on using it is outof date

Using the tentyfourteen theme, how would I go about using comment_karma to change the displayed order of comments? There is a solution posted on several sites (inc here, Sort comments by karma) but I ...
0
votes
2answers
31 views

Adding restrictions to open comments

I've got my discussion settings set to allow people to comment without registering, so the comment form has the standard Name, Email, Website and Comment, and this is working exactly as I want. The ...
0
votes
2answers
233 views

Get first comment link on the post itself

I have this function and a link to a post: <?php foreach ($results as $id) { $post = &get_post( $id->ID ); setup_postdata($post); <li><a <?php href="<?php ...
0
votes
1answer
115 views

Conditionally load class in the comment section of the post page

I want to be able to conditionally load a class containing the word 'AUTHOR' in the comments section, next to the name of the person who was the author of the post. I know it has something to do with ...