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
0answers
39 views

Safe way to allow sample HTML code in comments?

I see that post comments do not allow short snippets of sample HTML code to be entered for safety reasons. But if you have a blog where you expect to have conversations about code, how do you handle ...
1
vote
1answer
78 views

using comments_template() in custom single-portfolio.php

I am wanting my users to be able to post comments on my portfolio page. Ive created a portfolio page using custom posts. On my blog i am using the comments_template(); and then on the comments.php i ...
0
votes
1answer
29 views

Comments Pagination as an unordered list

I am currently using <?php paginate_comments_links(); ?> to display comments pagination. How can I customise this so that it uses a UL and LI? (Such as is possible with custom post pagination). ...
0
votes
1answer
47 views

How to 'If Author' Comments Check

I would like to add extra markup to a comment made by the site admin/post author. Is there a check for this and how would I add it to my code below? Basically, if the comment is from the post author ...
0
votes
0answers
58 views

your comment awaiting moderation message sometimes not appearing

On a new wordpress site I realise that sometimes when testing the comments feature for posts that the "your comment is awiting moderation" message does not appear. When a comment is posted, the url ...
0
votes
1answer
153 views

get comments by current user inside page template

I want to add a page template inside my custom post type and retrieve inside that page the comments posted by current user. I have this code for getting the current user: <!-- GET CURRENT USER ...
0
votes
0answers
11 views

Is it possible to get the comment_reply_link within latest comments?

I have the following code to get the latest comments; function get_recent_comments($no_comments = 5, $comment_len = 80, $avatar_size = 48) { $comments_query = new WP_Comment_Query(); $comments ...
0
votes
0answers
37 views

How to show Disqus comments and pingbacks?

I use disqus to handle comments on my blog. I also like to have pingbacks from various posts back and forth to each other (and from outside sources. However, I noticed today that while the comment ...
-1
votes
2answers
52 views

changing default comment form arguments [duplicate]

I want to change the default comment form title_reply, label_submit ... just on my CPT without affecting the default comment form but I can't get it to work without affecting the default ones. First ...
1
vote
1answer
56 views

disable comments if array exists

This is the code which is registering the function for rewrite_endpoints(): function wpa121567_rewrite_endpoints(){ add_rewrite_endpoint( 'comments', EP_PERMALINK ); add_rewrite_endpoint( 'stats', ...
0
votes
0answers
87 views

External link not showing on post but showing on comment

Why is this? For example, if I input this in a post: <a href="http://i2.wearecdn.net/images/2012/11/47/article/vans/so6099412/vans-authentic-schuhe-bright-green-black-1755-zoom-0.jpg">This ...
0
votes
0answers
24 views

Load Paginated Comments Inline

Currently my WordPress blog loads the comments in paginated results (loading all at once slowed down the blog too much); first displaying the oldest 50, after clicking "<< Older Comments" it ...
0
votes
1answer
171 views

jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default

I am attempting to create a button to show/hide comments in WordPress. I am currently using the following script: <script> $(document).ready(function() { // Get the #comments div var ...
0
votes
1answer
27 views

How to maintain changes to comment-template.php

I have made some custom changes to the file wp-includes\comment-template.php. These changes are periodically lost and I assume it's related to updates for WordPress and the file is ...
0
votes
0answers
20 views

selectively disable akismet

I need to disable Akismet for comments written by one of my registered users, since there is a problem that when such plugin is enabled they do not appear. I have some familiarity with php but I am ...
0
votes
0answers
18 views

Can't post comment to blog in wp-multisite

I'm running a wp-multisite install with ~100 blogs. I recently discovered a blog that I can't post a comment to (though I've been able to previously). When I try to submit a comment, I get the ...
-1
votes
1answer
90 views

add comments custom fields after user is logged in

I want to add two custom fields inside comments on a CPT after the user is logged in on. This is the code for creating the custom fields: function debate_comment_fields( $fields ) { if( ...
0
votes
1answer
62 views

comments hooks on custom post type

First, this is what I want to achieve: I want to add a comments hook on a CPT which is asking users to be registered and logged in to be able to post a comment. And after the user is logged in to ...
0
votes
2answers
29 views

Customizing Comments

Hi I want to customize the text with the arrows pointed at at the image I have uploaded. I have managed to customize some but I cannot find the file to customize the rest. Many thanks its on local ...
0
votes
1answer
45 views

custom comment fields on CPT

I want to create few comments custom fields for my CPT and remove the default ones. I will have just two custom fields more exactly 2 radio inputs. Here is my code: function ...
0
votes
0answers
11 views

Adding comment template on a loop into a page

I've created a loop in a page, with a single post per page. The type of post is the default "post". Now, I've resolved the problem of pagination on this page, but I cannot show the comment template on ...
0
votes
0answers
9 views

How to prefill comment-author, -site and -mail inputs when user writes a second comment?

How to prefill comment-author, -site and -mail inputs when user writes a second comment? I think it is saved in a cookie. Are there some functions? THX
0
votes
1answer
37 views

unapprove comments on custom post type

I have registered a custom post type and I want to unapprove comments by default on this custom post type without affecting the default posts/pages which is set to approve. I've looked through the ...
1
vote
2answers
330 views

Cannot get local avatars to show

See updates below. I upgraded to 3.7.1 using svn. I did this on my localhost first to make sure everything is fine. Everything was, so I proceeded to do it on the server. However, on the server, the ...
0
votes
0answers
6 views

Exclude comments on page X from site's comments RSS feed

I would like to exclude comments on a certain page from the site's comments RSS feed (site.com/comments/feed/). I've done some searching but failed to find any info on how this could be achieved. Any ...
0
votes
1answer
35 views

How is comment spam received without a comments form?

The theme one of my sites is using does not have a comments form nor is there any HTML markup for comments anywhere within the code. So, how am I receiving spam comments? All the spam is caught by ...
0
votes
1answer
35 views

Author profile comments system

I have a custom PHP file to get all the users/authors from the DB in WP, so it's all showing correctly and working BUT, I want to make the comment to work properly, what i did now is: <?php ...
0
votes
1answer
29 views

Comment form - different title if no comment yet

this isn't major but would be nice. Would like to have 2 titles for the comment form, one that says "no comments yet start the discussion" and another that says "join the discussion". I've had a good ...
2
votes
1answer
55 views

Use comments as notes, visible for comment author only

My question is exactly the same as this, not sure if it can be bumped so thought I'd post again. Basically I'm trying to create a scenario similar to how comments work. On a page, a registered user ...
0
votes
1answer
24 views

Display custom text when comments are closed

When I close comments on a post it's showing "Comments are closed". Is there any way to edit this text and show a personal note instead of the pre-configured one? I would prefer to do this in a ...
1
vote
1answer
114 views

using wp_query to return posts w/ comment count > 0

I've looked at numerous examples of wp_query and can't figure this out. If the thing I was comparing were a meta value then I could to a meta query, but apparently you can't do a compare with a ...
2
votes
1answer
81 views

How to get comments from multiple post type?

How can I get comments from multiple post type? I want to display 5 comments from my different post types pages. <?php $defaults = array( 'number' => 5, 'post_type' => ...
0
votes
1answer
169 views

Enable commenting on front-end preview page for pending posts

We are in the process of allowing authors to collaboratively be a part of the editorial process. They will have access to all pending posts' preview pages (not post-edit pages). I want to allow these ...
1
vote
1answer
79 views

custom comments on specific post type

I have a custom post type called debate and I want to create some custom fields just on this post type. So, I have this code: function debate_comment_fields( $fields ) { if( is_singular( ...
1
vote
1answer
191 views

Most commented last 24h, week, month, year and all time - posts_where

I've removed my old post here, as the posts_where method is outdated. Thanks to kaiser, this is now how easy it is to list most commented posts within a certain time span: <?php $popular = new ...
0
votes
0answers
29 views

How to check whether post contains pingback/trackback or not

I want to check whether post contain pings and then display the pings. I used the following code and it does not work for me. <?php if ( !empty($comments_by_type['pings']) ) : ?> <div ...
1
vote
1answer
49 views

Completely disable comments

Is there a way (hacks, plugins…) to completely disable comments in WP? By this, I mean completely hiding the feature from view automatically, for existing and new users alike. In particular: the WP ...
1
vote
0answers
53 views

How to import only certain comments from post[s]

NOTICE: This is solely NOT a WordPress.com Question, but related to WordPress Migration and Export-Import. I started blogging in WordPress.com and then shifted my blog to a self-hosted site. But ...
0
votes
1answer
46 views

comments_popup_link() - how to load different classes/images according to different comment condition?

As the Codex says the syntax: <?php comments_popup_link( $zero, $one, $more, $css_class, $none ); ?> it's clear that we can load different texts according to different comment conditions, ...
0
votes
1answer
24 views

How can I grab and show the reader comments of my site

How can I grab and show the reader comments of my news site in a different page? Suppose, I have comments on a news site, into my posts. I want to show the comments (only the comments) into a ...
1
vote
0answers
33 views

Disable comments

I'm wondering if there's any way to prevent users from leaving comments but still display the comments form? So, whenever a new comment is posted, it should be automatically trashed or it shouldn't be ...
0
votes
1answer
65 views

Disqus moderation page not working in WordPress admin section

If I login to my Admin section and click Comments on the left, the Disqus moderation page does not load. On further inspection this is because it's trying to load the page over http:// and my blog is ...
0
votes
1answer
48 views

Disqus resetting comment count to 0

For some reason my Disqus comment system seems to resetting the comment counts to 0 on the main page. If you load my site the current blog at the top has 1 comment, you can see it says 1 very briefly ...
0
votes
1answer
44 views

Comments from mobile apps & Disqus

I'm currently using Disqus in my WordPress Installation, and I am pretty happy with it. However, I'd like to extend my native mobile app (Windows Phone) to allow the users to post comments directly ...
0
votes
2answers
37 views

Admin Dashboard - Recent Comments source

I need to see the source file for the admin dashboard widget that shows recent comments, can anyone point me to the exact php file that does this? I can't find it anywhere on the codex or in google ...
1
vote
1answer
56 views

$reverse_top_level works the opposite way according to Codex?

The Codex for wp_list_comments states $reverse_top_level (boolean) (optional) Setting this to true will display the most recent comment first then going back in order. For my it is actually the ...
1
vote
1answer
35 views

Leveraging Wordpress Comments on Custom Plugin Object page

I have written a plugin that creates it's own tables to house the necessary schema for client's product. Then I created a single page that retrieves the custom object via passed in query string like ...
0
votes
2answers
102 views

comment meta_query for keys that aren't yet set

I need query help! I am trying to set up a meta_query (for get_comments) for keys that aren't yet set. I have some code that allows moderators to add a custom meta key to individual comments. Click ...
1
vote
0answers
44 views

comment reply by email

Is it possible that the admin replies to a comment by email, replying to the notification message he receives about the comment? And for a whatever user if the subscribe to comments plugin is ...
0
votes
1answer
35 views

How to get the number of pages when paginating comments?

I want to display threaded comments via ajax using pagination. If I use this code to display comments for page 1 how can I know if there is something more to be displayed on page 2? If there is ...