wordpress tutorial for, Add Custom Content to End of RSS feed for wordpress. WordPress has own wordpress api to designed many RSS feed format. code given here.
Add Custom Content to End of RSS feed for wordpress
RSS (most commonly expanded as Really Simple Syndication) is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.
RSS feed are very important. WordPress has own wordpress api to designed many RSS feed format.
In this tutorial I will show you how to add the custom text in your rss feed.
You just need to open your functions.php file and put following code in that file.
function feed_the_Filter($query) { if ($query->is_feed) { add_filter('the_content','add_to_feed'); } return $query; } add_filter('pre_get_posts','feed_the_Filter'); function add_to_feed($content) { $content .= '<p>Follow us on Twitter &lt;a href="http://twitter.com/wordpressapi"&gt;Wordpress API&lt;/a&gt;</p>'; $content .= '<p>Join our &lt;a href="http://www.facebook.com/pages/wordpressapi/280021545846"&gt;Wordpress API Facebook Community Page&lt;/a&gt;</p>'; return $content; }