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
8 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
9 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
0answers
8 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
14 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
1answer
31 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
9 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
0answers
26 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
1answer
28 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
6 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
23 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
46 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
18 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
43 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
15 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
47 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
39 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
24 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
0answers
17 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
22 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
12 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
17 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
15 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
42 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
25 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 ...
1
vote
0answers
22 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
24 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
14 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
22 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
1answer
29 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
19 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?
0
votes
0answers
50 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
34 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
27 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
1answer
23 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 ...
0
votes
1answer
28 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
18 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
30 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 ...
1
vote
0answers
47 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
53 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
1answer
27 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 ...
0
votes
0answers
13 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 ...
-2
votes
1answer
37 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 ...
4
votes
1answer
72 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
0answers
72 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
25 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
26 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
21 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 ...