Feeds for post comments

On the individual posts page, we can add a feed to allow users to subscribe to the comments on a particular post. Sometimes a single post on a blog can draw a lot of attention, with dozens or hundreds of people adding comments. People who comment, and even those who don't comment, may be interested in following the thread, or subscribing to it.

Using your FTP software or the built-in WordPress theme editor, edit the single.php file in your theme folder. If you're using the theme we built during Chapter 6, find the code that we added in it, which includes the comments template <?php comments_template(); ?> and add this code just before it:

<p><?php comments_rss_link('Subscribe to these comments'); ?></p>

(If you are not using the theme we built in Chapter 6, you can add the above text anywhere in single.php so long as it is inside the if and while loops of the loop.) Now when you look at a single post page, you'll see the subscription link just above the comments form:

Blogging For Cash

Blogging For Cash

Simple secrets to turn your computer into a cash machine. Successful Bloggers know that with the right money making opportunities blogs can become cash generating machines. If you want to start a profitable blog, or profit from an existing blog, you need to know this information. Start blogging for cash today and learn everything you need to know to profit from your blog.

Get My Free Ebook


Post a comment