WP Specific Comment

Allows for the use of a template tag which returns a comment (specified by its ID) for use as an object.

Author:David Link | Upsidestudio & Special thanks to Nick Ohrn of plugin-developer.com (profile at wordpress.org)
WordPress version required:2.0
WordPress version tested:2.7.1
Plugin version:1.0
Added to WordPress repository:30-04-2009
Last updated:30-04-2009
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://upsidestudio.com/plugins/wp-specific-c...
Total downloads:1 191
plugin download
Click to start download

WP Specific Comment provides a template tag for use anywhere in your theme, inside or outside The Loop. This template tag will return a specific comment as an object, from which you can retrieve any standard comment data.

Template Tag

To initiate the plugin, place <?php wp_specific_comment($ID); ?> into your theme, where $ID will be the ID number for the comment you want returned.

Example:

<?php wp_specific_comment(44); ?> will return the comment with the ID of 44. Pretty simple, right?

Note: This template tag will not actually display anything. It only sets up a comment to be displayed. You'll have to add in some other standard WordPress Template Tags to get anything to show up on your blog. List of available Comment Tags can be found here.

Example:

<?php wp_specific_comment(1); ?>
<h5 class="comment_author"><?php comment_author_link(); ?></h5>
<div class="comment_text"><?php comment_text(); ?></div>

The above code would retrieve comment with ID of 1, and then display its author (linked to the author's URL, if provided) in a <h5> followed by a <div> containing the comment's text content. Still pretty simple!