Add a rss link on each wordpress post

October 29, 2008 · Print This Article

How to create a rss link displayed on each post?

Althought this is very easy to do, many WordPress users seems to wonder how to do it. The answer is simple.

To create a rss suscribtion link under each post, edit the single.php file from your theme.

Locate the WordPress loop, and simply add the link below.

 

<?php if (have_posts()) :
while (have_posts()) : the_post();
// WordPress loop ?>
<div class="rss-box"><a href="http://feeds.feedburner.com/livexp">Enjoyed this post? Suscribe to my RSS feeds!</a></div>
<?php endwhile; ?>
<?php endif; ?>

As you can see, I embedded the rss subscription link with a <div> html element. This way, it will be very easy to edit style.css and style it to fit your theme look and feel.


Related articles:

Your choice for site templates and wordpress themes

Comments

Got something to say?

You must be logged in to post a comment.