WordPress tutorials: Add feed links to header

Wpsnipp – WordPress generates a unique RSS feed for each post on your blog, which can by default be accessed in the post metadata section below the post itself. However, in order to make the most of your feed you need a link element pointing to it, telling browsers, bots, and whatever and whoever else might be accessing your page that this is a feed, not just any old XML file.

Adding this to your functions.php of your wordpress theme will add all RSS feed to your header, main comments, categories.

 

 

 

if (function_exists('automatic_feed_links')) {
automatic_feed_links();
} else {
return;
}

Leave a comment