- Subscribing to Categories
- The Challenge
- The Code
- Try It for Yourself
Try It for Yourself
This technique works with my highly modified theme’s post.php template, but it also should work pretty well with yours. Copy my code into your text editor and modify the paths as necessary for your site. Be sure to replace the complete path to my feedicon.jpg file with a path to a similar icon on your site. (You can right-click my little icon (Control-click on a Mac) and use the Save to Disk command to get your own copy of the icon for use on your site, or just download an icon collection from the Feed Icons site and choose the one you like best. Please don’t link directly to my icon; I simply can’t support the bandwidth (and will have to change the path frequently if outsiders link to it).
Next, paste the code into your post.php or index.php file (wherever the Loop is) in place of the code you currently use to list a post’s categories. It should work.
Of course, the feed icon concept depends on visitors knowing what that tiny icon is for and how to use it. But I’ll have to tackle that problem in another exercise.
Oh, and if you don’t know anything about editing WordPress template tags and theme files, and you think the Loop is part of the mass transit system in Chicago, you need WordPress 2: Visual QuickStart Guide by yours truly and Miraz Jordan. Really.
Maria Langer is a freelance writer and commercial helicopter pilot who spends far too much time fine-tuning her WordPress-based web sites and blogging about all kinds of things. She’s the coauthor (with Miraz Jordan) of WordPress 2: Visual QuickStart Guide for Peachpit Press and more than 60 other computer how-to books. Visit her blog and book support sites at http://www.marialanger.com.