Textpattern tips, tutorials and code snippets

Using Feedburner for your RSS feeds

Many site publishers use Feedburner for their site feeds. Although Textpattern has in-built RSS and Atom tags for your feeds, Feedburner offers some extra benefits, including site metrics and advertising integration via Google (which owns Feedburner).

Create a Feedburner account

  1. Create a Feedburner account
  2. Create your feed, for example “TxpTips”
  3. Download, install and activate the htn_feedstats plugin

Add the feed to your head tag

<!-- Feeds -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/MYFEED" />

Place the above in your <head> tag in your page template or form. Edit the link tag "http://feeds2.feedburner.com/MYFEED" to reflect your Feedburner account name.

Integrate Feedburner in your site

<h2>Feeds</h2>
<div id="feedcounter"><p><a href="http://feeds2.feedburner.com/MYFEED" title="RSS Feed">We have  <strong><txp:htn_feedstats id="12345"  /></strong> subscribers to our feed!</a></p>
</div>

Enter the above into a form or directly in your page template where you wish to display the feeds. Edit the anchor tag "http://feeds2.feedburner.com/MYFEED" to reflect your Feedburner account name and also your account #id in the htn_feedstats tag: <txp:htn_feedstats id="12345" />

Thanks to Jean-Pol Dupont for requesting this tip.

3 Comments Comment feed

The Feedburner Awareness API URL has changed since the htn_feedstats plugin was written. I imagine Google will indefinitely forward API requests from the old URL but it might be wise to note the new one.

http://api.feedburner.com/awareness/1.0/GetFeedData?
is now:
https://feedburner.google.com/api/awareness/1.0/GetFeedData?

I also found Nathan Smith’s .htaccess tips very useful for integrating FB into my site.

Didn’t know about htn_feedstats. Thanks.

First at all: Sorry for my limited english.

i’m using wyn_feed_redirector and is fantastic.

i recomend this plugin for newbies users and people who don’t know nothing about .htaccess configuration and other stuffs.

Nathan Smith’s .htaccess configuration is very easy , but not all the users found or have basic knowlegde in this kind.

@Sam Brown:
I guess the old format in FB redirect all the RSS to Google’s API . . or i’m wrong ‘bout that?

Have a nice day and weekend :)

Add a comment

Use Textile help to style your comments