Feed Comments Number

Add an image that displays the number of comments to your feed items.

Author:Joshua Clayton (profile at wordpress.org)
WordPress version required:2.3
WordPress version tested:2.7
Plugin version:0.2.1
Added to WordPress repository:29-11-2008
Last updated:27-03-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://josh.thespiffylife.com/wp-plugin-feed-...
Total downloads:2 337
Active installs:10+
plugin download
Click to start download

This plugin will display an image showing the number of comments on a post at the bottom of each feed item (RSS|Atom|etc) that links to the comments section of that post. You are able to choose which colors to use for the background of the image and the color of the text as well. The reason you would want to use an image instead of plain text is because RSS feeds are generally only updated if the build-date or modification-date components are changed, which does not happen if someone leaves a new comment. This will allow the comment number to update dynamically, regardless of when it's been first viewed by a user.

You're able to set the colors of the text and the background in the standard 6 character hex format. You may also supply formats for what will show if there are zero comments on your post or more. I just added the option to include the image link in the feed excerpts as well. (called by the_excerpt_rss function)

Two Font files are included with the plugin, Arial and SenateBold. You can set which of the two you would like to use, or optionally upload your own .ttf font file to use to render the text on the image.

This requires the GD Image library extension in PHP to function. To check whether or not your server has this use the <?php php_info(); ?> function and it should be listed.


Screenshots