The Best Way to Insert Custom Content into Feeds


Sponsored Links




The Best Way to Insert Custom Content into FeedsMy Another Favorite featured in WordPress is easy to tweak it out. And WordPress good support on Feed. Sometime we need to insert custom content into our WordPress Feeds right? On this post I will show you how to Insert Custom Content into Feeds. The custom content can be anything – text, markup, or even scripts – and may be set to appear in blog posts, feed posts, or both. You can easily set content to display before or after your post content, or in both places

Write down this code to Insert Custom Content into Feeds

function doContent($content) {
$content = $content . '<p class="extra">Write Down your custom content here!</p>';
return $content;
}
add_filter('the_excerpt_rss', 'doContent');
add_filter('the_content_rss', 'doContent');

Please note, the code above will insert extra content after you the_content_rss(); or the_excerpt_rss(), so if you display this code in you standard theme, the custom content will be displayed too. So beware when you tried code to Insert Custom Content into Feeds

Subscribe to Full RSS Feed

RSS FeedIf you thing this article useful, please consider subscribing to our RSS Feed or e-mail updates and stay updated with us. You can also follow @WPTricksNet on twitter for latest updates.

About WP Tricks

We are WordPress Family, we collected and writed useful tips and tricks for you WordPress. We share it for you...

Related Tips and Trick from Local Data and on The Net

RSS To HTML - How To Convert RSS Feeds Into Published Web Pages

RSS feeds are a great way of not only promoting your own online content, but also of and can create your custom feeds is a very simple way to pull RSS feeds into Read More

Free Web Content: get free rss feeds, news feeds, & Free Content!

Just copy-and-paste installation code into your web page(s) and be on your way. Handling your free content you free web content with our rss news feeds. The free content Read More

What's the best way to create an MRSS feed for a distribution

The best way to enable large distribution partners index once and then can use the next two feeds to determine what content will likely have a way to code this into their Read More

WordPress Widgets « WordPress Codex

custom feeds on your site for Posts and Comments. The RSS allows you to integrate an external feed source for content into a way of integrating outside content into Read More

18 WordPress Plugins for RSS Management & Tweaks

layout of images in your RSS feeds. While there is a way Your WordPress Blog - 10 of the Best To easily manage content and embed the feed into your Read More


2 Responses to The Best Way to Insert Custom Content into Feeds

  1. Pingback: Custom Query String (Reloaded) | Unlock IMEI Cellphones

  2. Mohan Singh says:

    Where in which file we have to insert the code?
    You didn’t provided the file name…

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>