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

0
votes
1answer
13 views

How to add a category to comments?

I am currently trying to add a category to the comments on my wordpress site. I already added a title to these and tried several ways to add a dropdown (selection) list to the comment form but I am ...
0
votes
1answer
363 views

Rearrange elements outputted by comment_form()

I'm currently developing a custom theme from scratch. In the past week, I've been trying to change the order of the HTML elements output by the comment_form(). I basically don't know any PHP, and I ...
0
votes
0answers
16 views

Create custom comment system [closed]

I need to create custom post type with custom comment form without change anything in a default comment system and add page in wp-admin to manage the new custom comments I want to use the default ...
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', ...
0
votes
0answers
24 views

How to Remove novalidate attribute from comment form

I'm using html5 support for input formats and custom comment form fields with this code: <?php $commenter = wp_get_current_commenter(); $args = wp_parse_args( $args ); if ...
0
votes
2answers
464 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
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
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
0answers
13 views

Comments template only linking to one post

For some reason, the comments section at the bottom of each post (using single.php) seems to only be linked to a specific post on my blog, and only retrieves comments from that one post regardless of ...
0
votes
1answer
54 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
16 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
2answers
172 views

Custom comments form

I've got the following code: function pietergoosen_persoonlike_kommentaar_velde($fields) { $commenter = wp_get_current_commenter(); $req = get_option( 'require_name_email' ); $aria_req = ...
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
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
0answers
33 views

Comment form on page redirects back to frontpage

I have a page template with a single WP_Query what displays only one posts (Depends from the value of the $_GET. Example: domain.com/custom/?id=2). I would like to add a comments form I used ...
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 ...
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?
0
votes
1answer
44 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 ...
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 ...
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?
0
votes
1answer
41 views

How To Customise WordPress Comment Submit Button?

I am trying to customise the output code of <?php comment_form(); ?> At the moment the submit button outputs the following: <p class="form-submit"> <input name="submit" ...
0
votes
1answer
58 views

Comments on future posts

I have enabled future (scheduled) posts to display as single post so on that page comments are enabled but there is a problem when i try to post comment. I get a blank screen without any warning or ...
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 ...
0
votes
0answers
27 views

How to change comment-page-1#comment-25 to any string?

How can we change the slug "comment-page-1#comment-25" to somthing like review-page-1#review-25
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 ...
0
votes
0answers
59 views

Load comments_template for specific post

WordPress by default allows users to call comment_form() using a post ID that the form should be for. for example, you can say comment_form($args, '114'); to load the comment form for the post with ID ...
-2
votes
1answer
85 views

Questions about using Disqus or Jetpack for comments [closed]

I'm looking for a good commenting plugin, I want to choose between Disqus and Jetpack, but I have a few questions I couldn't figure out myself. Hopefully you guys can help me out! :) 1) Where are ...
-1
votes
1answer
106 views

Merge comments from Facebook with WP comments [closed]

I'm looking for a way to integrate Facebook comments (actual comments from facebook) into the comment section of a wordpress post? So what I need is; when someone comments on an URL-post on facebook ...
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
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 ...
0
votes
0answers
39 views

How to change the order of the comment_form fields with css?

I would like to have the comment form display, from top to bottom: 1- the comment-form-comment; 2 - the comment-form-url; 3 - the comment-form-email; 4 - the comment-form-author; 5 - the submit ...
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 ...
0
votes
0answers
33 views

How can I change the markup of the comment_form() function?

I am currently creating a website on localhost. I am looking to change the cancel_comment_reply_link from being next to the "Reply to " section, instead being right next to the "Submit" button. I know ...
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 ...
0
votes
1answer
415 views

Create customized captcha field to wordpress comment form without Plugin

I did asked a similar question some time ago but i couldn't get a useful answer. I would like to ask again. I actually wanted to add a field called "security" to prevent those autobot to send me ...
0
votes
1answer
62 views

get_comment_meta not behaving as expected

I'm sure this must be a silly error by me but I haven't been able to solve it... I added an extra 'rating' field to my comments form so that users can rate posts. Everything works fine and by using ...
-1
votes
2answers
99 views

Add custom captcha to comment form

I have a blog for my official website. I allow people for commenting on my blog but i don't want to get comment from auto-bot. Therefore, i am thinking of to add an extra field which is called ...
0
votes
2answers
334 views

Adding guestbook to my wordpress site

I´m trying to add something like a guestbook, where the user can write about our services, something like comments with few more content like country, facebook page... should i do this with a single ...
0
votes
1answer
620 views

How to change submit button value in comment from “Post Comment” to “Send”

How to change submit button value in comment from "Post Comment" to "Send" I have "responsive" theme , I tried to seach files in wp folder but i can't find the html for this form . Also Is that ...
0
votes
1answer
39 views

unsetting required fields in the comment reply form

Is there a way to make differences between the normal comment form and the reply-to-form? For example, I added a set of required radiobuttons to the form which make rating by commenting happen. Now, ...
0
votes
1answer
69 views

Increase Comment Author Gravatar Size On WordPress Default Comment Function

I am new to WordPress theme development. I am designing a new theme and using less codes and file as I am starting from basic. I am adding comments and comment form in my single.php using <?php ...
0
votes
1answer
81 views

Does anyone know all parameters of get_comments()

Here is the link. There is a lot of parameters that didn't explain yet, and I want to know all about it. Thought, I have try to read the code, but can not understand it at all. The more I try to read ...
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
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 ...
0
votes
0answers
21 views

How can I place function of a plugin into comment_form array?

I am using a theme which uses this array for comment_form textarea: comment_form( array( 'comment_field' => '<p class="comment-form-comment">' . '<label for="comment">' ...
0
votes
2answers
2k views

Comments Reply Form

When I click on Reply, the reply form appears at the bottom of the page (under the last comment). How can I add the Reply Form inside the comment to which I am going to add the reply?
0
votes
1answer
207 views

Add class to comment form div when comment-reply button is clicked

I'm using the comment-reply script to move the comment form under thread when replying to a specific comment. Comment form is being displayed in theme with: <?php comment_form(); ?> The ...
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"> ...
0
votes
1answer
242 views

Comments not enabled for custom post types

I don't get this at all. I've looked online and I think I did everything I was supposed to, but my custom post type does not display a comments form. In functions.php. where I define the post type I ...
0
votes
2answers
32 views

Adding restrictions to open comments

I've got my discussion settings set to allow people to comment without registering, so the comment form has the standard Name, Email, Website and Comment, and this is working exactly as I want. The ...