Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 73

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 add a new one or remove a single field.

2
votes
You may use my plugin Magic Widgets. It creates a sidebar (widget) area on four actions. Plus, you get a text widget that outputs exactly the markup you put therein. There is a second plugin for the …
answered Jan 11 '11 by fuxia
2
votes
This is hard. Output buffering could solve that: add_action( 'comment_form_field_comment', 'ob_start' ); add_action( 'comment_form', 'wpse_83898_replace_submit' ); function wpse_83898_replace_submit …
answered Jan 31 '13 by fuxia
0
votes
Use get_comments_number() to get … well … the number of comments. In your theme’s comments.php you can use its return value to do something: $num = (int) get_comments_number(); if ( 0 === $num ) …
answered Nov 6 '13 by fuxia
1
vote
Change the textarea earlier than the plugin. The plugin runs with a default priority of 10, so you could use 9: add_filter( 'comment_form_defaults', 'wpse_61103_change_textarea', 9 ); function wpse_ …
answered Aug 7 '12 by fuxia
4
votes
Filter comment_form_defaults and add your code to the textarea. Sample code, not tested: add_filter( 'comment_form_defaults', 'wpse_120049_extend_textarea' ); function wpse_120049_extend_textarea( …
answered Oct 25 '13 by fuxia
2
votes
You have to set the value of $_POST['comment_post_ID'] to the post id of the page: <input type='hidden' name='comment_post_ID' value='10' /> Then set the action of the form element to /wp-comments- …
answered Oct 8 '12 by fuxia
13
votes
That's pretty simple. You just have to take the textarea out of the default fields – filter 'comment_form_defaults' – and print it on the action 'comment_form_top': <?php # -*- coding: utf-8 -*- /** …
answered Apr 29 '12 by fuxia
1
vote
What you need are two new containers: one for the single line fields, one for the textarea. Looking at the default comment form, we can see where their start and end tags should appear. I have added s …
answered Oct 11 '12 by fuxia
1
vote
Use get_comments() and pass the post ID as parameter. Then print the result as regular list. From a plugin I have published recently: function t5_list_comments( $atts, $content = '' ) { '' !== $c …
answered Jan 15 '13 by fuxia
1
vote
You can filter 'comment_form_logged_in' and return the missing fields. But there is a much easier way: Open a tab in private browsing modus and visit the same page.
answered May 21 '12 by fuxia
6
votes
Filter comment_form_field_comment to add a select element with a label. Add a callback to the action comment_post to save the value. Filter comment_text to show the value for a comment. Sample …
answered Jun 4 '13 by fuxia
3
votes
add_filter( 'cancel_comment_reply_link', '__return_false' ); See /wp-includes/comment-template.php#function get_cancel_comment_reply_link() for more background. But if you do that the reply form wi …
answered Feb 8 '11 by fuxia