Add Content to the End of Your RSS feed in WordPress

Sometimes its necessary to add content at the end of your RSS feed. Here is a little code that will help you to do that. You can add social pages, scripts and more using this method. Just paste the code below into your functions.php file and replace the content with whatever you want it to be. 🙂

This will not add content to then end of your posts in your website, this will only add content to your RSS feed.

[code]//adding additional content to RSS feed
function addToRSS() {
return ‘<p>Additional content can be here</p>’;
}
add_filter(‘the_excerpt_rss’, ‘addToRSS’);
add_filter(‘the_content_rss’, ‘addToRSS’);[/code]

Only cool people share!

Add Content to the End of Your RSS feed in WordPress was last modified: April 15th, 2015 by Maximus Mccullough
Summary
Add Content to the End of Your RSS feed in WordPress
Article Name
Add Content to the End of Your RSS feed in WordPress
Description
Sometimes its necessary to add content at the end of your RSS feed. Here is a little code that will help you to do that. You can add social pages, scripts and more using this method. Just paste the code below into your functions.php file and replace the content with whatever you want it to be. :-)
Author
Add Content to the End of Your RSS feed in WordPress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.