The Comments Loop widget was written to allows users with no coding knowledge to customize their comments loop and comments form, all without editing their comments.php file.
Comments Loop is a complete widigitzation of the comments.php file, with over 30 settings to customize from reply links to what gets displayed when comments are closed. When you activate Comments Loop, you’ll have two new available widgets, Comments Loop and Comments Form. Simply drag and drop them in a sidebar that’s active in a singular template (e.g. single.php, page.php, or attachment.php).
View the FAQ section for more info on how to use Comments Loop.
Download
Requires at-least: 2.9
Latest version: Comments Loop v0.1 [zip] (276)
Links
Installation
- Upload ‘comments-loop’ to the ‘/wp-content/plugins/’ directory.
- Activate the plugin through the Plugins menu in WordPress.
- Go to Appearance > Widgets and place the Comments Loop or Comments Form widget where you want.
FAQ
Q. How does this widget work?
A. The Comments Loop and Comments Form widgets are basically an abstraction of the comments.php file. The Comments Loop widget makes use of the wp_list_comments() template tag to generate the custom loops. You can see a list of arguements at the wp_list_comments() codex page. Both widgets make strategic use of action hooks and filters for advance customization.
Q. What are the available shortcodes in this widget?
A. The comments_meta in the Comments widget section may contain shortcodes.
In addition, the Comments Loop widget comes bundled with:
[author]– Displays the author of the post.[date]– Displays the date the post was published.[time]– Displays the time of day the post was posted.[link]– Displays the comment’s permalink.[reply]– Displays the reply link.[edit]– Displays the edit link.
All shortcodes have before and after parameters. For instance, adding a seperator before the edit link would be: [edit before="| "]. In addition, the [edit] and [link] shortcodes have a label parameter to customize the actual text (e.g. [link label="Permalink"]). To customize the text for the [reply] shortcode, use reply_text and login_text.
Q. What hooks are available in this widget?
A. The Comments Loop has several action hooks available throughout the loop process:
before_$comment_type_div– Before the opening of the#commentsdiv$comment_type_pagination– Right after the pagination linksbefore_$comment_type_list– Before the comments loopbefore_$comment_type– Within the loop of $comment_type, right after the opening tag.after_$comment_type– Within the loop of $comment_type, right after the closing tag.after_$comment_type_list– After the comments loopafter_$comment_type_div– After the closing of the#commentsdiv
NOTE Change $comment_type to be the value of the widget’s type parameter (e.g. comment, trackback, pingback, pings).
In addition, it also has several filter hooks where you can modify the function’s output:
cl_comment_meta– The text of thecomment_metawidget settingscl_comment_author– The post authorcl_comment_date– The date the comment was postedcl_comment_time– The time of day the comment was postedcl_comment_count– The comment countcl_comment_link– The permalink for the commentcl_comment_reply– The reply linkcl_comment_edit– The edit link to edit the comment.
The Comments Form has several action hooks available:
comment_form_before– Before the#responddivcomment_form_must_log_in_after– After themust_log_intextcomment_form_top– After the opening form tagcomment_form_logged_in_after– After thelogged_in_astextcomment_form_before_fields– Before the input fieldscomment_form_after_fields– After the input fieldscomments_form– Before the closing form tagcomment_form_after– After the#responddivcomment_form_comments_closed– After thecomments_closedtext
hi,
i am new for the wordpress…. i have installed the comment loop …but dont know the effects or uses…please tell me the uses…
thanks..
I really interest with the feature..
But this plugin is not working on my blog..
I don’t know where’s the problem, but when activated this, i go to appereance>widget, but my widget structure goes wrong, it don’t show normally..
Hii there
i have installed this plugin.. but i don’t know how to use it… can you please explain what i need to do ?? i have created a page naming testimonials in my site, now i want people who are taking our services to leave a comment there… Can you please assist me..
Thanks
kamaldeep
Yes I get the same problem as Surya did so I need to de-activate it and unistall to get my widget page looking as it should.
I only get some widgets on the page and the fields from my theme dissapear so I don’t have any place to put the widget anyhow.
This seemed so very promising. I host my own WP 2.9.2. however the theme I use needs a comment.php update. Unfortunately, when I activate it, my widget menu in admin is frozen. I may need some custom work done, if you are available for that.
Guys, I hear each and every one of you. I’ll have a fix out within the next few days.
Thank’s apresiate it