This tag outputs a complete commenting form for use within a template. Most strings and form fields may be controlled through the $args array passed into the function, while you may also choose to use the comment_form_default_fields filter to modify the array of default fields if you'd just like to ...

learn more… | top users | synonyms

7
votes
5answers
4k views

How to rearrange fields in comment_form()

Im using a custom filter to change the fields, but can´t figure out how to change the order of the fields in the comment form. Desired order: comment field (first/top) name email website This is ...
5
votes
7answers
14k views

How to add a class to the comment submit button?

How do I add a class to the comment submit button? The simplified function comment_form(array('id_submit'=>'buttonPro')); obviously only changes the id and class_submit does not seem to exist. I ...
4
votes
2answers
3k views

Removing the “Website” Field from Comments and Replies?

In an effort to combat comment spam, I'd like to hide or remove the "Website" field from the "Leave a Reply" section for page and site comments. I have no desire to increase others page rankings by ...
4
votes
1answer
2k views

How do I set up real anonymous posting in bbpress forums? [closed]

I have bbpress-post-topics plugin installed so that my comments forms are replaced by a bbpress forum topic, it's working but I would like to enable anonymous posting. Currently, as you can see ...
3
votes
1answer
609 views

Hide comment form completely (preferably without using CSS)

I need to conditionally not show the comment form. I've added a filter to comment_form_defaults as follows: function dont_show_comments($defaults) { $defaults = array( 'fields' ...
3
votes
1answer
623 views

Display comment form of specific page in sidebar

I want to display the comment form of a specific page on a sidebar. It will look like this roughly. I tried modifying from comments.php and putting it on sidebar.php. But nothing shows up. ...
3
votes
1answer
236 views

Deep customization of the comment form?

I've been handed over a design to translate into WordPress plugin & theme. My question is regarding building a custom comment form. The design used some custom scripts on the comment submit ...
3
votes
1answer
382 views

Custom Comments - Parent / Nested Reply

I am making a custom theme and have edited comments.php, but I'm unable to get the comments to save as a reply to another comment. I have succeeded in showing the comment parent id to show as a hidden ...
2
votes
5answers
3k views

How can i customize the comment list

I am using wp_list_comments() function to draw the comment list.But,I want change many things in the form like class,styles, reply link and etc... so please help me, How can i customize the comment ...
2
votes
5answers
4k views

Add class to Reply button in Comments area

Under each comment there is a link called 'Reply'. I want to add a class to this link. It's default class is comment-reply-link. How can I do so? I am creating my own theme and I don't want to ...
2
votes
3answers
6k views

Help with “text domain”, comments_form in WordPress theme

I've been plugging away at creating my own theme and am pretty much there, but ran the Theme Check plugin and had a few concerns/questions: Throughout the theme, wherever there is text, I've used ...
2
votes
1answer
756 views

Does WordPress Allow Blank/Empty Comment Submissions In WordPress?

I've got a great Comment Form and Threaded Comments setup by using the native WordPress functions: comment_form and wp_list_comments. However, I'm trying to also create a custom Contest Comment ...
2
votes
1answer
46 views

Why are default comments deprecated?

I am developing a theme and, after calling comments_template(), noticed that "Theme without comments.php is deprecated since version 3.0". I created a comments.php in the root of my theme and copied ...
2
votes
1answer
1k views

Add a drop down list to comment form?

Can somebody help me to create a drop-down menu or (radio buttons) in Wordpress comment form, so that a new user could make a selection of their user roles (for example teachers + students) ? Output ...
2
votes
1answer
4k views

comments reply script not working

Sadly my "reply" link for threaded comments is not working. The current situation: First i load the comments reply script (check if scripts content load: works) into the <head> using two ...
2
votes
1answer
376 views

Add a Custom Field in Comment Box AFTER text area BUT BEFORE Send button

I was inspired by this Q&A: Add a Custom Field in Comment Box next to the Text area but I have to insert the custom field after the textarea but before the Send button. I did not found the proper ...
2
votes
1answer
190 views

Am I using the right hook for removing quicktags on the admin TinyMCE?

This is more of an excercise than something for a client. Anyway, I'm trying to disable the quicktags when you're on the dashboard and you click on Comments > Edit Comment. On that screen, there's a ...
2
votes
3answers
270 views

how to modify comments form

how i can modify comments form, my theme just call: <?php comment_form(); ?>
2
votes
1answer
371 views

Comment `Reply` link doesn't work if comments are loaded from ajax

I am writing a plugin that displays custom home page that is in fact only one post with comments. The first time home page is displayed by the initial call by php. Then user can click a menu button to ...
2
votes
2answers
274 views

Publish a message on facebook after having posted a comment

I would like some advice on how to improve the code I use for allowing people to comment posts. Users can only submit a comment if they are connected with Facebook. I started developping this feature ...
2
votes
1answer
83 views

Including new Javascript only after a comment is made

I am looking to call a new javascript function only after a new comment has been made by a user. Specifically, I want to include new javascript on the resulting page of the page reload after ...
2
votes
1answer
341 views

Show comments fields in two columns

I am using comment_form(); in loop-single.php file to show the comment form. I have the following fields in it: Name, Email, Website, Title, Comment. Currently all these form fields show underneath ...
2
votes
1answer
182 views

Edit Comment_Field while using T5 Comment Textarea On Top-Plugin

I’m using the T5 Comment Textarea On Top-Plugin for the comment_field. I’m a newbie to wordpress. So I don’t know, how can i edit the Style of the comment_field or edit the Label? Usually I would put ...
2
votes
1answer
856 views

Changing position of cancel_comment_reply_link and other elements of comment form

How would I move elements of the WordPress comment form, which is called in comments.php with the following: <?php comment_form(); ?> For instance, I'd like to wrap cancel_comment_reply_link ...
2
votes
1answer
177 views

Threaded Comments Feature not working

If a reader posts a comment on my blog, I'm able to reply to it. But the reply is not appearing on the post page, even after approving the comment. Number of comments to that specific post is 3, i.e., ...
2
votes
0answers
21 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
3answers
4k views

Using filter to add additional fields to comment_form()

I want to add a field to the comments and have used these codes. functions.php function my_fields($fields) { $fields['url2'] = '<p class="comment-form-url2"> ...
1
vote
1answer
163 views

Comment form connection to Gravity Forms

I want to use the comment form I have built to then transfer data directly into an entry within Gravity Forms. I'm thinking it can work from this: Someone fills out comment form. If checkbox is ...
1
vote
2answers
327 views

How to unset comment_notes_before field in WordPress comment_form

I am trying to remove Your email address will not be published. line from comment form in twentythirteen and twentyfourteen default themes. I have tried this: function ...
1
vote
1answer
280 views

Auto-fill Custom comment fields

Thank you for reading, I added custom fields to the comment form, and saved the input in the DB, following this tutorial ...
1
vote
1answer
166 views

The comment login form is visible to me but not to the user

I am beginner in wordpress & i am working on my own blog ( http://cssground.com/ ). Right now i am facing an issue with the comment form. The comment form is visible to me & it's work fine but ...
1
vote
1answer
121 views

How to enable commenting system in Wordpress

I am learning how to create custom Wordpress theme from this pageand everything is working except commenting system because they haven't described how to enable it (they only used <?php ...
1
vote
1answer
194 views

Making a Comment on a page without being on that page?

I have a built a Wordpress site that enables comments on pages and I am using them as reviews, what I would like to do is for someone to be able to make a comment on a page without being on that page. ...
1
vote
2answers
636 views

Hide reply button after moveForm is called

When user clicks on Reply button for a specific comment, how can I then hide the reply button under said comment? Do I have any access to the javascript onclick function that it calls?
1
vote
1answer
113 views

“comments.php” not available after edit in WP administration

In the theme "Point", the page "comments.php" is not translated properly. I wanted to translate the labels manually (to french) in the WP administration editor but when I update the file, the comments ...
1
vote
1answer
47 views

To whom do emails get sent via the Wordpress comments form?

I am working on a Wordpress 3.9.1 site, specifically the comments form. I have a copy of the site on my server and I want to test the form in the following three ways: Adding a new comment ...
1
vote
1answer
885 views

How to add enctype to multipart/form-data to comment form?

I need a way to change the encoding type for my comment form, without hacking the core files. I'm aware of the function to work on the post editing form: post_edit_form_tag. I've tried this: ...
1
vote
1answer
327 views

Display comments on a comment page without form

I'm using this to allow me to display my comments for posts on category pages: <?php $wp_query->is_single = true; comments_template(); $wp_query->is_single = false; ?> However I don't ...
1
vote
1answer
151 views

Jetpack Comments with fall-back

I'm developing a theme based off of bones - I went ahead and edited the comments.php file - the comments form is hardcoded - I assumed this was the right way to do things so I carried on and ...
1
vote
1answer
1k views

Error when posting comment form: The error is TypeError: e[h] is not a function

I am getting an error when the function below posts the form (from the second time, the first time it is blocked). When I click the submit button after this, the form submits without problem. The ...
1
vote
1answer
326 views

How to change the order of elements in comment_form()

I’ve put the class for 'logged_in_as' into another container to display the content in another column: <div id="content-form"> <?php $fields = array( ...
1
vote
1answer
420 views

Saving value of a selection option in comment form as comment meta

In a plugin that I am writing I need to let user choose an option from a dropdown list before they post a comment. I used the comment_form action and inserted a drop down into the comment form. /** ...
1
vote
3answers
854 views

Change order of comment fields

Is there a way to display the comment field first and then the Name / Email / Website fields? I am using <?php comment_form( ); ?> in my theme. I am not looking for a CSS solution.
1
vote
1answer
356 views

blank page after submitting a comment

I was testing a new website with Chrome (latest build), everything working fine (no new plugin installed during the test) when suddendly when I try to post a comment, after pressing the "reply" button ...
1
vote
1answer
2k views

Default comments file and how to copy it

I have a custom theme. There is no comments.php file, Wordpress is using whatever the default is. I need to modify the comments area, but I want to base my changes off of the default template. Where ...
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?
1
vote
1answer
263 views

How to display the comment_form with a shortcode while removing it from its default position?

I was already able to have the comments form show in the post content area with this code, which allows me to use the [wpsites_comment_form] shortcode: add_shortcode( 'wpsites_comment_form', ...
1
vote
0answers
258 views

comment_form() not showing on custom post type

I'm using Gravity Forms to create entries from forms, and Gravity View to display these entries on the Front-End. By default, Gravity Forms and Gravity View doesn't have a comment system for the ...
1
vote
0answers
139 views

Customize the cancel_comment_reply_link

As the title suggests, I want to modify or customize the cancel_comment_reply_link without editing the /wp-includes/comment-template.php. The code in comment-template.php looks like this: <h3 ...
1
vote
0answers
48 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 ...