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
29 views

Comment form unset email

I want to remove the URL and email field from the contact form. I have removed using following filter: add_filter( 'comment_form_default_fields', 'filter_comment_fields' ); function ...
0
votes
2answers
546 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
17 views

how to add a comment button to be displayed only for the posts in the home page [closed]

I need a button which directs to the comments section of that particular post. I want that button to be displayed only in the home page for every post. Can anyone help me with this My website url is ...
4
votes
1answer
107 views

Comment form not display properly?

I want to display comment form in my blog page comment_form() work properly but its display like that: Comment name email website But this form should be display like that ...
6
votes
2answers
225 views

How to wrap submit button of comment form with div

Is there a way to wrap the submit button with html element while using wordpress function comment_form function. $comments_args = array( 'id_form' => 'main-contact-form', ...
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 ...
1
vote
1answer
583 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
1answer
18 views

Get comment id of the individual comments in comment list when modifying comment posted using comment text filter

I am trying to modify the comment displayed in the comment list and for that i am using the following code: add_filter( 'comment_text', 'modify_comment'); function modify_comment( $text ){ ...
14
votes
5answers
8k 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 ...
0
votes
2answers
49 views

Multiple comment forms on a single page

I have to load multiple posts on a single page. The situation is different. The client ask to reorder the posts, that the current post of the category becomes first and all the rest are next. Then on ...
3
votes
2answers
52 views

How can comments be submitted when I don't have a comment box on a page?

I've blocked access to xmlrcp, and removed most everything that is generated in wp_head. However, I'm still getting notifications in the admin about comments being posted on posts even when there is ...
0
votes
1answer
25 views

Custom comment-field form arrangement [closed]

How can I move my custom comment fields above the comment field? Currently i am using hooks comment_form_after_fields and comment_form_logged_in_after. Unfortunately due to Wordpress 4.4 changes, ...
0
votes
2answers
44 views

How to properly enable comments form in page template

I've applied the following code to enable the comment section in the page template. <div class="col-md-12"> <?php while ( have_posts() ) : the_post(); ?> ...
4
votes
2answers
152 views

Comment Walker vs. Comment Callback

I've been messing around with custom comments this week and I'm trying to figure out when I'd want to use a walker and when I'd use a callback... There's some things I can't quite figure out how to ...
0
votes
2answers
32 views

How can I embed comments plugin to my own website?

I am looking for a way to embed WordPress comment form to watch.php in order to allow user to comment on a specific video. Can you tell me how?
4
votes
1answer
54 views

comment_form() generates the wrong action url

I created the file comments.php. Inside it I have a manual loop for my comments section. I loop from offset = 0 + ((page - 1) * total_per to offset + total_per). The problem is when I add new comments,...
1
vote
1answer
85 views

Comment form not showing up without comments

My posts dont show the comment form unless that post already has comments. If post has one or more comments, everything works perfectly. Everything used to work fine (that's why some posts have ...
0
votes
1answer
50 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 ...
5
votes
1answer
103 views

How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?

Is there a way to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit? I don't necessarily need nested comments I just need the reply link to be always ...
5
votes
7answers
18k 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
2answers
86 views

Custom comment field not showing when logged-in

I've added a custom field in comment by using function comment_label($fields){ unset( $fields['url'] ); $fields['rate'] = '<p class="comment_form_rate" id="rate_recipe"> ...
-1
votes
1answer
42 views

Get Comment With Meta value

I need get all comments of a post including of the meta value.. for eg. i need all comments fields + a meta value. i tried the following code to get but.. its not working $args = array( 'status' =...
1
vote
1answer
20 views

Two steps comment form

Is it possible to have a comment form for anonymous users, that be proceeded in two steps. First step enter author info (Name and Email) then second step to add comment? I know this is possible with ...
0
votes
0answers
15 views

I wish to hide the complete comment section/div on all the posts page after a particular time period

I wish to hide the complete comment section/div on all the posts page after a particular time period(i.e after like 5 minutes after landing on the post page). Tried different plugins but none of them ...
1
vote
1answer
196 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 id="...
1
vote
1answer
143 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 button;...
0
votes
0answers
59 views

Create Custom Comment Type

I have a page when I want multiple comment_template, so I want each of my comment_template to have different type so I see different comments in those 2. My get_comments look like this $args = ...
0
votes
1answer
26 views

Comment form not supported the image tags

I used the following code to enable image tags in the comment form. If I input the text with image upload, the image not displayed in the displayed comment. function my_comment_tags() { ...
0
votes
1answer
32 views

Comment section not appearing on posts

My comment section simply does not appear on posts, even though on my first couple test posts, it did appear. The current theme I'm using is Tesseract, in case that is relevant. Before that I was ...
2
votes
1answer
629 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
1answer
37 views

Change the tag of the comment submit button

The <input> tags does not allow/support many CSS properties, so I want to change it to <button>. How can I get that button and apply a filter to it?
0
votes
1answer
42 views

Wrapping the cancel_comment_reply_link()

This question is related to another question, unfortunately the answer provided does not work. I used to have a template to replace the comment_form() but since this practice is viewed in Themecheck ...
0
votes
0answers
42 views

How can one display the comments and comment form by supplying a post id?

I have a masonry layout of post images. When you click on one it shows the larger image and some event details. I'm trying to print the comment form along with those details. I've tried simply ...
0
votes
0answers
53 views

Remove a field label from WordPress comment form

I can remove a field from the WordPress comment form using the comment_form_default_fields filter. However is it possible to remove only a specific field label instead of the field completely? I ...
0
votes
0answers
12 views

Troubles with Wordpress input ids

I'm developing a site in WordPress and I'm getting trouble with the comment form. I have a page that list all the post within a taxonomy. For each post in that page, I've added the form comment, so ...
0
votes
0answers
21 views

guest comments with existing emails

I'm implementing a comment form for a single-variant.php that guests are allowed to use. Unfortunately if a guest is using the E-Mail address of a registered user (admins for example) they are still ...
3
votes
1answer
861 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. ...
0
votes
0answers
49 views

Comment Form Name Field Not Showing

I have really simple code here to customise the WordPress comment form. My code is working but the custom fields just aren't showing. I am using WordPress version 4.3. Why is it not showing? &...
0
votes
2answers
135 views

Echo out custom fields in comments

I am trying to figure out how to echo 4 created fields from a plugin in my theme template for the comment form and customize the comments output as well. The plugin I am using lets me add custom ...
0
votes
1answer
42 views

reply to comment excerpt instead of author in comment title

One can reply to a comment using Reply link, below each comment item in comments list. According to codex, by clicking that link and using comment_form_title function like this: $replytext = 'Leave ...
0
votes
1answer
9 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
0answers
16 views

Wordpress comment_form() doesn't submit comments

The problem is that comment_form() displays the form where to write comments, but clicking on the button send has no effect. I checked from wordpress admin area if users are able to post comments and ...
0
votes
0answers
18 views

How to use custom_query_var along with post_id for comments

I have introduced a custom_query_variable - brand in my permalink using the below function. function add_query_vars_filter( $vars ){ $vars[] = "brand"; return $vars; } add_filter( 'query_vars', '...
1
vote
1answer
1k 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
1answer
18 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
30 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
25 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
395 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
2answers
208 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 = ...
1
vote
2answers
492 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 alter_comment_form_fields($...