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)

0
votes
2answers
78 views

How to move comments box above comments

<?php /** * The template for displaying comments. * * The area of the page that contains both current comments * and the comment form. * * @package Tesseract */ /* * If the current post is ...
0
votes
1answer
148 views

Make custom Wordpress comments list

i'm making a custom Wordpress template and I've made this HTML code for single comment template: <div class="comment" id="1"> <div class="useravatar" style="background-...
0
votes
1answer
22 views

Stop theme displaying comments

So with all comments disabled on pages/posts theme's still display any existing comments. Is there a way to programmatically stop this happening without adjust the theme's code? My plugin uses ...
0
votes
0answers
57 views

Categorizing or tagging post comments

To implement a particular requirement I want to be able to categorize/tag post comments as well. Is there any plugin that does it? Or is it even possible? For example: there might be a post and some ...
0
votes
2answers
134 views

Echo out custom fields in comments

I am trying to figure out how to echo 4 created fields from a plugin in my theme template for the comment form and customize the comments output as well. The plugin I am using lets me add custom ...
0
votes
0answers
35 views

Previous and Next comment page link not work

I have a custom post type name recipe. I've already removed slug for post: From: example.com/recipe/cake-post To: example.com/cake-post But I have problems with break comments into page: previous ...
0
votes
0answers
33 views

Send post via XMLRPC with open comment

I'm trying to send post via xmlrpc to wordpress but I don't know how to send comment_open to the wordpress. Is there any options to do so? I read the documentation but didn't find any option regarding ...
1
vote
1answer
194 views

What is comment_karma?

doing a var_dump on $comment object, I mentioned there is a comment_karma property. What is that?
0
votes
1answer
41 views

reply to comment excerpt instead of author in comment title

One can reply to a comment using Reply link, below each comment item in comments list. According to codex, by clicking that link and using comment_form_title function like this: $replytext = 'Leave ...
4
votes
3answers
283 views

Display Authors Comments on Profile Page

I am trying to display authors comments on their profile page (author.php), however both codes I tried seem to display everyone's comments. Also the second code is suppose to link to the specific ...
0
votes
1answer
9 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
0answers
16 views

Wordpress comment_form() doesn't submit comments

The problem is that comment_form() displays the form where to write comments, but clicking on the button send has no effect. I checked from wordpress admin area if users are able to post comments and ...
0
votes
1answer
73 views

How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?

By default, the comment column shows the number of approved comments. I would like to either: Change this to the number of comments pending approval, OR; Create a new column with the number of ...
0
votes
1answer
14 views

Comments enabled, but disabled at the same time

I have comments enabled under the "Discussion" settings (http://postimg.org/image/pvc3cb8yp/). However, every new post has comments turned off by default (http://postimg.org/image/ivagy6uuv/). When I ...
0
votes
1answer
67 views

Custom post type updated to support comments, yet comments don't appear

I have several different custom post types. One post type did not display the comment section, today I found out it was because I forgot to add it to the "supports array" 'supports'=>array('title'...
0
votes
0answers
75 views

Paginate Comments Via Ajax When Not On Parent Page

I have a page that I am using a custom query to pull in the comments from another post. The comments are successfully being rendered and formatted and the pagination links are showing up correctly as ...
3
votes
1answer
89 views

WP_Comment_Query() displays “password protected” comments?

It appears that looping through wp_comment_query() with the argument post_status set to publish also lists comments that are posted on password protected posts. Is this the correct behavior or is ...
0
votes
1answer
192 views

How to import facebook comments to Wordpress database?

I want to get rid of Facebook Comments from my website, but I have a lot of comments there. Is it possible to import facebook comments to normal Wordpress comments system or something else (i.e. ...
0
votes
1answer
95 views

'comment_post' hook doesn't seem to work? [closed]

This is driving me crazy - Does anyone know why this 'comment_post' hook doesn't seem to work!? I've basically written an entire email notification plugin for it and it's failed on the first step. ...
0
votes
0answers
113 views

Get most active users sort by comment count

how can I display a list of the most active users (with permalink and thumb) sort by comments count? I found this on WP Codex that list all the users, but I don't know how to sort by comment count. ...
0
votes
0answers
42 views

Not receiving any e-mails after new comment

I know this has been asked several times before in the past, but I think my situation is a bit unique. I am not receiving any e-mails when someone leaves a comment on my posts. Neither are any of the ...
1
vote
1answer
73 views

Hide Post comments when displayed via WP_Query

I've written a shortcode which displays 'x' number of posts on the homepage of my site when I write [blog posts_per_page-"3"]. Here it is: function getBlogPosts($atts) { extract(shortcode_atts(...
1
vote
1answer
323 views

Show comments in a popup

I want to show comments in a popup for the page with id=22. This is the anchor on whose click the popup will open: <a class="button button-small button-line-light comment-popup" href="<?...
2
votes
1answer
97 views

How i can let users add notes to my posts

I want to let users add notes to my blog posts, but I want to keep the notes separated from posts. What I mean is to have something like comments. Is it possible when a user writes a comment that ...
0
votes
1answer
18 views

Get Commentor IP When Marking Comment As Spam

What I am trying to do is create a list of IP addresses each time I click Spam on a comment. The only issue I have now is, how do I get the commentors IP address inside this function. This is what I ...
0
votes
1answer
112 views

Woocommerce Theme Reviews / Comments

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it. I don't have a /comments.php ...
0
votes
0answers
30 views

How to modify core when there is no hook?

I want to add a custom HTML5 attribute to the <form> element in the comments form. Since the form field itself is generated by comment_form(), and there is no hook to edit within the opening <...
0
votes
0answers
24 views

HTML tags in comments

I'm using latest Wordpress & Thesis theme. I have a technical blog where i want users to be able to put comments in the code. When i try to add a code to the comment (as a non logged in user) ...
0
votes
1answer
393 views

Outputting complete custom comment form

Need to implement the following bootstrap layout in twenty twelve comment form - <div class="sub-figure"> <div class="sub-post-title"> <h4 class="recent-title">Leave A ...
0
votes
1answer
286 views

edit-comments.php in Admin - how to change 'Comments' title?

How can I change the title 'Comments' on the edit-comments.php page in the admin area? Thank you
0
votes
0answers
142 views

Creating a comments voting system

I am trying to put together a voting system for comments and I can't figure out how to make the jQuery function to work. Here is the php function that updates the comment meta with the new vote count ...
1
vote
3answers
330 views

Where to remove <link> from comment's feed?

I can't seem to find where to delete/comment the line that prints: <link rel="alternate" type="application/rss+xml" title="[site title] [single title] RSS de los comentarios" href="[site_url]/...
1
vote
2answers
116 views

How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)

I'm developing a new theme and plugins for it. Unfortunately, the comment reply link is broken. Instead of moving the comment reply textarea, the page is reloaded by adding e.g. ?replytocom=2#respond ...
0
votes
1answer
231 views

get_comments_number() vs. get_post_field( 'comment_count', ID )

When I want to show the number of comments a post has - and I'm within the loop - which function is recommended to use? get_post_field( 'comment_count', get_the_ID() ) or get_comments_number() ...
0
votes
1answer
37 views

Minimum allowed comment length only on a specific page

This is the function I use to only allow comments longer than 60 chars: add_filter( 'preprocess_comment', 'wpb_preprocess_comment' ); function wpb_preprocess_comment($comment) { if ( strlen( $comment[...
0
votes
0answers
31 views

How to create a designated comment page with custom fields

I'm creating a site where I want to use the comment box to auto-generate a FAQ page. In essence, when a comment is posted it won't appear on the same page as the comment box. Instead, it will be ...
0
votes
1answer
49 views

Woocommerce comments subscription [closed]

I want to ask you that I translated all my site's texts but I can not translate comments subscription option on product page. from which php file I can translate texts? Thank you in advance :) Here ...
0
votes
1answer
174 views

How to get replies of a comment?

Is there a way to get replies of a comment by its ID? I have searched on google but could not find anything about it. For example, I have a comment with ID 123 I want to display all the replies that ...
1
vote
0answers
25 views

Comments not nesed with custom template

I have a custom template for to show my comments. For some reason, there are not nested while looking in the back-end of Wordpress, I see that some comments have a parent. They are simply displayed ...
0
votes
1answer
507 views

Why is_wp_error() is not returning false even there's no defined error

On the form submission I'm taking user comment for a custom purpose for my plugin. I'm checking whether the comment field is empty or not, and the comment field is filled with at least 30 characters. ...
1
vote
0answers
34 views

Show top level comments ordered by number of replies

I am trying to modify the comment loop initiated by wp_list_comments to change the order they are returned. Specifically I have 2 levels enabled on my comments (top level and replies), and I want to ...
1
vote
0answers
102 views

Move comments only from one WP installation to another

We have a bit of situation here. We have a website (let's say it is www.oldsite.com) where we had more than 2000 posts. There arose a need whereby we had to move some 60-70 posts from this oldsite.com ...
2
votes
1answer
230 views

Can I store my custom comment_type into wp_comments table?

I'm developing a system where a post can have multiple replies/feedbacks. As of now I's storing each of the comments as a serialized postmeta. But just today I figured out that I can use the existing ...
2
votes
0answers
29 views

Share comment to twitter after publishing [closed]

I need to share the comment from my web site after admin approves it from comment form to twitter account of user who comment for the post in my site. How can I do that?
1
vote
0answers
76 views

Wordpress 4.2.1 pre_get_comments doesn't work after update

I have this code working all time but, after updating to Wordpress 4.2.1, this doesn't work. // return just the missing replies in the comment table add_action( 'pre_get_comments', array( $this, '...
0
votes
1answer
88 views

get_comment_link without pagination base in the returned URL?

On pages with paginated comments get_comment_link returns URLs in the following format: http://samplesite.com/sample-page/comment-page-3/#comment-256 How could I make it return a URL like this? ...
0
votes
2answers
42 views

Wordpress shows admin's avatar after editing a comment

Recently I updated my wordpress to 4.2.1 and now I have a problem with editing people's comments. After editing them, the avatar picture of who edited the comment is shown instead of the avatar of the ...