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
1answer
293 views

How to allow logged in users to post anonymously

I've been searching and searching for a while now to see if there's a way to allow people who are logged into my BuddyPress site to make a post on the activity section as "anonymous" or as their ...
1
vote
2answers
419 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 ...
0
votes
1answer
633 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
2answers
271 views

How to output number of comments with link to comments

If there are comments, I want to wrap the amount eg "5 comments" in the link to the comments section of the post, but when I add the echo for comments_link it errors. <?php comments_number( '', ...
0
votes
0answers
8 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
16 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. ...
0
votes
0answers
8 views

Get child comments based on parent meta data

I'm using WordPress 4.2.2's built-in commenting system for a website and am trying to build a query using WP_Comment_Query to select child comments as well as top-level. Each top-level comment has one ...
0
votes
2answers
486 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 ...
1
vote
3answers
723 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 ...
1
vote
0answers
14 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
13 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 ...
0
votes
0answers
5 views

Convert comments to posts and make it clickable on comment section

I am currently working on quite a big project for a client – he wants comments to behave like a post when a user clicks on them. I have read about some similar functionalities but nothing really like ...
0
votes
0answers
13 views

Can I merge WP_Query and WP_Comment_Query together?

I have read about merging two WP_Query results. But I need to merge a WP_Query with a WP_Comment_Query and order the result by date. Is this possible? If so, how can I approach this? How would I ...
1
vote
3answers
425 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 ...
1
vote
1answer
21 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
1answer
519 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 ...
2
votes
0answers
16 views

Share comment to twitter after publishing [on hold]

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?
3
votes
3answers
72 views

Strategies for coping with hyperagressive spambots?

A couple of my sites are getting slammed by a hyperagressive distributed spambot. It's just pure link spam. It all comes from one user name, but from a variety of IPs. Akismet is catching the spam, ...
0
votes
2answers
433 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
2answers
20 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 ...
0
votes
0answers
34 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
28 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
1answer
17 views

Are there some caveats for using guids for FB comments

I'm using Facebook comments box and just realized that when we use <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="100%" data-numposts="5"></div> and then ...
2
votes
3answers
96 views

Is it possible to make wp insert last comment onto another page

If we set wp to break comments into pages after X nr of comments and we have X+1 comments , wp only shows that last comment instead of showing X and move the comment from bottom onto the next page. ...
0
votes
1answer
15 views

Jetpack Comments Change Placeholder Text

Is there a hook or template file where I can change the placeholder text on the #comment textarea w/in the comment form? Jetpack loads the form via an iFrame which prevents changing the placeholder ...
0
votes
1answer
16 views

Safely editing core files

I want to edit wp-comments-post.php so that if for example someone tries to post a comment with no content they will get a popup box telling them they cannot post an empty comment instead of the page ...
0
votes
1answer
15 views

comment_post action hook running on page load instead of after a comment is posted

I am trying to call a function after a comment is saved to the database, see below... add_action('comment_post', 'myFunction', 10, 2); do_action('comment_post', $comment_ID, $comment_approved); I ...
0
votes
1answer
34 views

Function to replace comment's accented characters before posting

I have some weird problems with encoding my Wordpress website and I can't add comments with accent words. when i try to do it, i received error by WP. What i need is just a function that read the ...
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 ...
1
vote
0answers
35 views

Troubleshooting Emoji in Comments

Just updated my local and live installs for a side project to 4.2 in order to take advantage of the newly added Emoji features. Emoji are working just fine on my local machine, but they seem to not be ...
0
votes
1answer
485 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
1answer
206 views

Display DISQUS on homepage

I have installed disqus and I want it to show up on my homepage. It replaced the old wordpress comments system on pages and posts but I also want it to appear on index.php my index.php file now - > ...
1
vote
2answers
47 views

Filtering Comment Reply Links (comment_reply_link_args) for “infinite replies” in nested comments

Since 4.1, WordPress has made the filter "comment_reply_link_args" available, apparently (?) with the intention of letting us intercept and modify particular options normally set in the admin panel as ...
0
votes
1answer
509 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 ...
4
votes
1answer
55 views

WP_Comment_Query pagination, delving into the unknown

I am aiming to pagination WP_Comment_Query(). It appears this is either taboo or there is no viable information about it online, not anything. Why? Is it possible? If so, how?
0
votes
1answer
22 views

How can I count only guests comments?

I need to ignore counting author replies within comments number function, for example If I have 9 replies (comments) which 4 of them appertain to post author, I would display 5 comments as comments ...
2
votes
3answers
197 views

Can I seperate comments from post?

I have a type of attachments that need full screen display. So, I need to put the comments form somewhere else. How can I tell WP those comments belongs to a post?
-2
votes
1answer
32 views

Separated Comment from Post

I'm designer with little knowledge of wordpress (newbie >_<) i use Worpress starter theme from : html5blank.com i want to separate COMMENT section from POST section, this still on one single.php ...
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
0answers
12 views

How can I see whether a commenter has subscribed to be notified of replies / other comments to a post

When someone asks a question in the comments, I reply in the comments. Is there a way I can see whether the commenter checked the "Notify me of follow-up comments by email" checkbox? Can't seem to ...
0
votes
0answers
6 views

Show top comments on blog page [duplicate]

I have a custom template wordpress and on the Blog page with contain list of blog posts, I want to show top 5 comments after the "Read More" link after each post. What code I should write there to ...
0
votes
0answers
43 views

Getting most popular posts based on Facebook comments count

I have modified a widget to display the total number of Facebook comments on a post rather than the total wordpress comments. I can get that part to show correctly, but I would like to get the most ...
0
votes
1answer
21 views

Comments and post dates not showing up correctly on “posts page”

I have customized the Twenty Fourteen theme to use the page "news" for my posts page because I have static frontpage. When you view my news page, comments don't show up, even though they are enabled, ...
0
votes
1answer
18 views

How to add replyToUrl schema.org to Wordpress comments?

I have the following code in my comments.php <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> ...
0
votes
1answer
18 views

Where are comments coded when using custom theme?

I am having issues displaying both the default comment system and a plugin comment system in Wordpress. Comments are enabled via Wordpress settings, comments are being made somehow via spam bots, but ...
0
votes
1answer
16 views

Comments as part of a post

Is there a way to show comments as part of a post, and not adding it with comments_template()?
1
vote
2answers
7k views

How to display comment form error messages in the same page

I want to display comment form validation errors (as well as captcha error) on the comment form itself and not on a different page. How can I do that?
2
votes
1answer
93 views

WP_Query sort by comment meta data

Is it possible to use the WP_Query class to order by comments meta data fields?
0
votes
0answers
12 views

add Reply functionality to comments using comment_text()

I am trying to write my first Wordpress theme. On the comment section i use the comment_text() to show the comments on the single.php of the theme. I would love to add a "Reply" button, but i ...
4
votes
3answers
6k views