« creating a Google Sitemap for your blog | Main | MT 3.2 is out! »

RSS feed of trackbacks for entries

Some people are interested in creating RSS feeds for each of their entries to show comments to that entry; this is an easy way for people to subscribe to see when new comments are added. Phil Ringnalda has a template here with instructions.1

Suppose you want to do the same thing for trackbacks. Actually, MT has done all the work for you; RSS files are generated for each entry the first time a trackback is sent to it. So all you have to do is link to it in your Individual Entry Archive template, like this:

<MTIfGreater a="[MTEntryTrackbackCount]" b="0" numeric="1">
<p><a href="<$MTBlogArchiveURL$><$MTEntryTrackbackID$>.xml">RSS feed of trackbacks to this entry</a></p>
</MTIfGreater>

I'm actually using the MTCompare plugin so that the link is only displayed when there are trackbacks on the entry, since that's when the file is generated.

Some people don't like these files and have turned off their creation, but I figure since MT is already creating them, why not make them available to anybody who might want to make use of them? Doesn't cost me anything!

1 Even though I have comments turned off at AMIB, I went ahead and added this; see "commentrss" here. In case I ever turn comments back on. tongue.gif

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

August 2008

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2