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

1
vote
1answer
25 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 ...
0
votes
2answers
778 views

Social Media's Avatar not working (Wordpress Social Login plugin)

I am using Wordpress Social Plugin. The problem is that social media's avatar is not showing. Here is my comment avatar code: <?php echo get_avatar(get_current_user_id(),30); ?> I found ...
0
votes
2answers
346 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' ...
2
votes
1answer
3k 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 ...
0
votes
0answers
15 views

Adding an input field to the comment form, and not letting it submit if any info is in it

I am working on a WordPress plugin that adds a hidden input field into the comment form. I have the code in place that adds the input field in, using this code. function hiddeninput_more_comments( ...
4
votes
1answer
534 views

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

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 ...
0
votes
0answers
36 views

https website comment form posts to 127.0.0.1

I am working on a "https" website. There is a strange problem. Whenever I post comment at any of the posts, next page after clicking the "Post Comment" button is with the url 127.0.0.1, which thereby ...
1
vote
0answers
33 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 ...
0
votes
1answer
101 views

Change Twenty Twelve's comment form in a child theme

I have a custom child theme of Twenty Twelve. I want to change the text "Leave a reply" to "Leave a comment", and also remove the website field from the comments form. How can I do this? Thanks.
0
votes
1answer
95 views

Enable nested comments in Theme

I am trying to enable nested comments in my theme. I am new to all this stuff but I am doing my best. This is the code that I have in my comments.php <?php if ( get_comment_pages_count() > 1 ...
6
votes
5answers
3k 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
1answer
162 views

Comment form vaildation

I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code functions.php function pietergoosen_custom_comment_fields($fields) { ...
0
votes
1answer
60 views

Output comment_author in array

In functions.php for part of custom comments, I have the following echoed array as the link to respond to a previous comment: <?php echo comment_reply_link(array( "before" => " <span ...
0
votes
1answer
149 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
50 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 ...
0
votes
0answers
17 views

Prevent moveform() to moving the original location of comment form

I have a post with comment enabled, also enabled threaded comment with max level 3. Each time I want to do a comment reply, the form comment box is moving to the comment which I want to reply. But I ...
1
vote
1answer
265 views

Force logged in users to still fill out name/address for commenting?

This is a bit of a weird request, but I'd like to force loggged-in users (one specifically) to fill out the standard not-logged-in name / email address fields before submitting a comment on the site. ...
0
votes
0answers
80 views

wp-editor-area textarea disapear on cancel-comment-reply-link click

I am using this tutorial to implent the wp_editor in comments. everything went fine except when i click on cancel-comment-reply-link. the form move on to its initial position on the bottom of ...
1
vote
2answers
5k views

How to dispaly 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
2answers
249 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
104 views

Display avatar with comment form?

I can display the current user's avatar alongside the comment form when posting a new comment with $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { echo ...
3
votes
6answers
9k 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
3answers
130 views

Customized Comment Form Issues

I'm developing a Wordpress theme and I faced a problem while customizing a comment form. What I wanted is to eliminate URL field and put my own classes for name and email fields. I'm doing it like ...
0
votes
0answers
14 views

Is it possible to get the comment_reply_link within latest comments?

I have the following code to get the latest comments; function get_recent_comments($no_comments = 5, $comment_len = 80, $avatar_size = 48) { $comments_query = new WP_Comment_Query(); $comments ...
-1
votes
1answer
50 views

strange conditional tag behaviour [duplicate]

I have this code inside my comments.php : <?php // If CPT and not logged in, display a message: if ( 'CPT' == get_post_type() && ! is_user_logged_in() ) { echo '<p ...
-1
votes
2answers
67 views

changing default comment form arguments [duplicate]

I want to change the default comment form title_reply, label_submit ... just on my CPT without affecting the default comment form but I can't get it to work without affecting the default ones. First ...
2
votes
1answer
183 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 ...
0
votes
3answers
729 views
0
votes
1answer
31 views

Comment form - different title if no comment yet

this isn't major but would be nice. Would like to have 2 titles for the comment form, one that says "no comments yet start the discussion" and another that says "join the discussion". I've had a good ...
2
votes
1answer
136 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 ...
1
vote
0answers
38 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 ...
0
votes
0answers
70 views

Editing default WP Comment Form

I am creating a new WP theme which is built on Bootstrap Framework. For making the comment for responsive certain class to be added to the element for the form. In the comments.php file I used the ...
0
votes
0answers
33 views

Display Comment Form on dedicated Page for each post

I have the following requirement to complete and i didn't figure out how to do it. Inside a post, for each post, to call comment form on a dedicated page, in dedicated page the user post a comment ...
0
votes
0answers
46 views

Wordpress Comments jQuery Doesn't submit

I am trying to check if the commentform is filled in after submition, and only submit it when it is filled in. I am using: $('form').submit(function (e) { e.preventDefault(); // Handle ...
0
votes
0answers
21 views

Commentform - Hightlight invalid fields instead of prompting towards error page

I have a huge problem. I used the comments.php from "EmptyCanvas". Code of it can be seen here: http://pastebin.com/YHDy2q4a However, it prompts me towards an error page when I do not fill out the ...
2
votes
2answers
150 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
78 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 ...
0
votes
1answer
34 views

Insert comment and still use moderation

I have a custom comment form that inserts a comment outside of the loop and applies it to a post. I'm trying to get it to still use the moderation check before it marks as "approve". Is there a way to ...
0
votes
1answer
385 views

Add a Custom Field in Comment Box next to the Text area

Good Day. I Recently try to figure out for adding the custom field in the comment box it working fine. Still I need to know how to add the custom field after the comment box. I am not sure how to do ...
0
votes
2answers
1k views

How To Remove The “Click here to cancel reply” Link From The Wordpress Comment Form

I am trying to remove the "Click here to cancel reply" link from the Wordpress comment form on my posts. In the document there is an argument you can supply to the comment form function to remove the ...
0
votes
0answers
41 views

Need an advice about comments

I am searching a solution for wordpress comments. I like standart comments, I already styled it and made some additionaly functionality. But there is one that I can't find and don't know how to make ...
0
votes
1answer
159 views

comment_form - show all fields when logged in

I'm using the http://codex.wordpress.org/Function_Reference/comment_form in my comments. If logged in I'm seeing only the textarea for my comment, not the fields for e-mail and name. Question Is it ...
0
votes
0answers
17 views

Youtube video output in comments through custom upload plugin

I'm developing a pluggin for a client that will allow users to upload videos to easily upload videos and display videos for comments. Through the Youtube API users will fill out the video information ...
3
votes
1answer
325 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
1answer
441 views

How to remove website field in comment form?

I am using <?php comments_template(); ?> to show my comment form and I'm trying to remove the url field so I added this to my functions add_filter('comment_form_default_fields', ...
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?
1
vote
1answer
147 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 ...
0
votes
2answers
1k views

enable TinyMCE for comment forms

Is there any way in Wordpress to use a richt-text-editor (preferable the build in TinyMCE) on the comment form textarea in the frontend? I had such a feature in earlier versions, using the plugin ...
0
votes
0answers
111 views

Saving comments not with PostID but different unique identifier

so here is the deal: I want comments to be saved not with the post ID but with another unique identifier. With disqus there is a way to do this with javascript: /* * * CONFIGURATION VARIABLES: THIS ...
0
votes
2answers
103 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 = ...