If this is your first time visiting, be sure to subscribe to my RSS Feed, and don't forget to follow me on Twitter! If it isn't your first time here and you're sick and tired of this message, get rid of it.
This site is powered by WordPress and tiny elf slaves.
Copyright 2009 J. David Link
Validated: XHTML, CSS, RSS, Section 508
Top 1 Reasons I Hate Design Blogs Right Now
(12)Last night, my good friend Matt opened up his new Mad Men Season 2 Blu-Ray. We were looking through the contents and came across this clever little ad.
(4)Wow, I’m very excited about this. I’ve been visiting Design Meltdown for a long time now as a source of inspiration. And now Upsidestudio has made the cut! Check it out.
(0)New project: OMG!Hungry! is now live. Check it out — http://omghungry.com
(0)Tomorrow (Saturday, Mar 28) I’ll be giving a talk (with Brian & Alise) to a room full of design students about transitioning from print design to web design. I’d love to have some of your ideas, advice, suggestions, or warnings on the subject. Help me make this a great presentation, leave me some words of [...]
(12)
Filed Away: Plugins, WordPress
WP Specific Comment
Just recently, I built a site called OMG!Hungry! which used WordPress in an unusual way to perform its purpose. One of the things I needed this site to do was to link directly to (and display) only one specific comment via a permalink. Since (at the time of writing) there were no other plugins available to help me do this, I decided to write [my first] one.
Thanks to this book
and the help of my friend Nick Ohrn, I happily release WP Specific Comment.
Description
WP Specific Comment provides a template tag for use anywhere in your theme, inside or outside The Loop. This template tag will return a comment as an object, from which you can retrieve any standard comment data. 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 Usage:
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!Installation
Installation of WP Specific Comment is quick and easy.
wp-specific-comment.phpto the/wp-content/plugins/directory<?php wp_specific_comment($ID); ?>in your templates, where $ID is will be the numerical ID for the comment you want returned.Download
Click Here
Tagged: Comments, Download, Nick Ohrn, OMG! Hungry!, Plugins, Specific, WordPress