Development on a Shoestring

Trackbacks Template WordPress Plugin

This plugin adds a template tag ‘trackback_template()’ that displays the list of trackbacks/pingbacks that a post or page has received.  By default it renders them as an unordered list inside a div with the id "trackbackslist" with a h3 heading "Trackbacks" above the list. The text snippet of the trackback is displayed in a paragraph tag above the link.  Alternatively if you’re comfortable with editing HTML & PHP you can add a file called trackbacks.php into your template folder and the plugin will use that to style this list. 

Installation

Download the plugin (see link above) & extract the zip file into your plugins folder.  Then activate it from the plugins page in WordPress admin.  That’s it.  There is no admin page for this plugin, it’s really that simple.

Modifying the template

As mentioned above, the plugin will render the trackbacks by default as a list, but you can change this to do whatever you want. This is contained in a file called ‘trackbacks.php’ in the plugin folder, which you can copy into your template folder to use as a starting point for styling your own list.  The trackbacks are contained in a variable called $trackbacks which is an array of comment objects.

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus

Subscribe by email

Enter your email address:

Delivered by FeedBurner


Elsewhere

Verse of the Day

Do not be slothful in zeal, be fervent in spirit, serve the Lord. (Romans 12:11, ESV)

Networks & References