Code for inserting your own content to every RSS Feed of WordPress based blog is very simple
It can be usefull for inserting ads or banners.
Include the code must in functions.php of your theme.
function insertFeedFooter($content) {
if(is_feed()) {
$content.= "<h3>Some title</h3>";
$content.= "<p>Some Advertisement, or code, or something else.</p>";
}
return $content;
}
add_filter ('the_content', 'insertFeedFooter');
Enjoy!
Leave a trackback from your own site.
Leave a Reply
You must be logged in to post a comment.
One Response to “Add Content to RSS Feed”
Thanks for sharing this information. Useful though!