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
1k views

How can I make Disqus comments not show up on pages?

I use Disqus to manage my comments. I'd like it to appear only on posts, and not on pages. How can I do that? If there's a way to selectively show it on some pages that'd be great, but in general ...
2
votes
1answer
49 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
26 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
1answer
534 views

Display category-specific comments in sidebar

I'm trying to display comments in the sidebar from only the current category. So far I've got this: <?php // Posts per page setting $ppp = 8; //get_option('posts_per_page'); // either use ...
0
votes
3answers
2k 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
1answer
14 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
883 views

Warning: call_user_func_array() expects parameter 1 to be a valid callback, func

I have installed Wordpress in my localhost server. I am a creating custom menu. When I try to remove the existing "primary" menu from it, I get this error Warning: call_user_func_array() expects ...
0
votes
0answers
20 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. ...
1
vote
2answers
464 views

How to use the 'comments_number' filter?

I'm not sure how to use this filter. Could someone show me an example? I'm trying to change ('0', '1', '%') to ('0 Comments', '1 Comment', '% Comments'). I'm using this function to get the comments ...
5
votes
1answer
694 views

How to change “You must be logged in to post a comment.”

Some of my users have mentioned that my site is confusing for them. As this is the case, I would like to actually make links to Login/Register for my unregistered visitors to quickly do so if they ...
0
votes
0answers
23 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
3answers
442 views

Comment as post - understanding wp_list_comments

I'm creating a site where a central question will be posed on the front page with excerpted first-tier comments linking to a page with the full first-tier comment, presented almost as a post, with ...
3
votes
4answers
9k views

Why are the comments disabled by default on my custom_post_types?

I am using a custom post type + taxonomies in a podcast solution for a client. The setting (settings >> discussion) for comments is set to "allow comments". When I add / edit posts under the "posts" ...
1
vote
1answer
25 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) { ...
2
votes
1answer
598 views

How to display comments on different page

I am creating a reviews site and I want to display the customer reviews (comments) on a separate page from the single-restaurant.php. I'll just have a link that says (Read reviews/ add yours). I ...
0
votes
2answers
518 views

Show count of all comments by meta_value from a users posts

I'm trying to display the total number of comments for a users posts limited to a comment meta. I've tried using both get_comments() and WP_Comment_Query() but I get the same result of "1" for the ...
0
votes
1answer
44 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" ...
1
vote
3answers
919 views

How do we remove the H3 tag for the reply-title I.D

We're doing some SEO tweaking to a site, and our SEO guru informs us that we need to remove the <h3> tags from the #reply-title element, output from line 1554 of comments-template.php. It's the ...
2
votes
0answers
28 views

How i can let users add notes to my posts

I want let users add notes to my blog post, but i want keep that notes separated from posts, what i mean is some thing like comments. Now i think about adding category to comments. Is it possible when ...
0
votes
2answers
466 views

Actual comments not showing, but form is?

I have edited the comments form to remove a few fields and now the approved comments don't show up, just the form itself. What am I missing from this? <?php $comment_args = array( 'fields' ...
0
votes
1answer
2k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
0
votes
1answer
16 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
35 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
18 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
1answer
53 views

Remove comments validation (remove filter?)

How i can remove wordpress comments content validation, I do not want to or examined the earlier there was no such comments. I see for: ...
0
votes
1answer
524 views

Disable comments and pingbacks on old custom post types

This SQL code will disable pingbacks on old posts and pages: UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post'; UPDATE wp_posts SET ping_status='closed' ...
0
votes
0answers
12 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
55 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
0answers
14 views

How to make a sortable comment column?

Is there a way to make sortable comment columns? I have managed to create the column and to populate it, but i don't know how to make it sortable. I've found a lot of solution for sortable post ...
0
votes
0answers
17 views

How to add a spam button to comments in frontend

I already have a delete link for my comments and it looks like this: <?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?> <?php $url = ...
0
votes
0answers
17 views

Create a registration page for members

I wanna authorised comments for members only, i have created a comments page but i don't know how to redirect unconnected people to registration page or login page. thats my comments page. enter ...
0
votes
0answers
10 views

Add Wordpress comments submission in a blank php page

I have installed Wordpress in a directory in my domain. In base of my domain I have a simple html/php page with a small submit form ( so website load time is minimal). I woul like to add the ...
0
votes
1answer
38 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
44 views

Comment reply problem: Maximum call stack size exceeded

For a client I was asked to add nested comments to the theme. I followed the way twentyfifteen does this to the letter, yet when I click 'Reply', both Chrome and Safari give me the 'Maximum call stack ...
0
votes
0answers
15 views

Manually call a WP class, e.g. wp-comments-list-table?

How would I output a class such as the admin comments table (wp-comments-list-table.php) on my own page? Thanks in advance
0
votes
0answers
9 views

Wordpress commenting in a site loaded via iframe

We've an issue here with WordPress loading via an iframe in a magento site. After posting a comment on the blog, the redirect to post comments is extremely slow and seems to timeout. Tried the ...
0
votes
0answers
34 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 ...
0
votes
0answers
61 views

What kind of HTML tags can be put in text area

I'm working on a wordpress website right now and I have this problem . Here is the problem: When the user type something in comment textarea and use one of those texteditor objects(justifyLeft ...
0
votes
2answers
29 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" ...
1
vote
2answers
47 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
0answers
19 views

Post comments getting added to unrelated media, not post

I'm in the process of setting up and testing a new WP install (this is my first time setting up my own WP site). With a test user I added a comment to a post. After refreshing the post page a few ...
0
votes
0answers
76 views

How do I show rating stars in admin comments columns?

I have a custom post type where I use a slightly altered comments template converting the default comments into a 5 star rating and reviews function. It works as expected just as it should. From the ...
0
votes
1answer
55 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
26 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( ...
0
votes
1answer
25 views

Why is a old comment reply comment appearing at end of comment list as well

EDIT: Updated function to use get_comments offset param. Issue is still occurring. I am displaying 5 comments at the end of an article and using ajax to request the rest of the comments. On this ...
0
votes
0answers
20 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 ...
5
votes
5answers
2k views

Disable comments on all posts/pages

Is there a quick way to disable all comments on all posts and pages. I know that you can go into the dashboard under posts, click edit, and Do Not Allow, under comments. Is that the only way?
0
votes
1answer
28 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
0answers
13 views

Is it possible to have two or more comment forms in one page?

I want to be able to place two comment forms in a page. One should be fixed on top of comments and the other should be moveable through comment-reply.js I have tried to place two comment_form() but ...
0
votes
1answer
26 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 ...