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

How To Display External RSS Feeds

On our recent post, we have write about WordPress Feed Tricks, Right now we will do something else. Sometime we have another useful resource about our blog, some of them really interesting and we need to put the content on … Read More

Post Thumbnail on RSS Feed

Jeff Starr give nice tricks how To Added Post Tumbnail in our RSS Feed, and I will show you on today wordpress tips. This code only need tiny hack, we put some code in our functions.php and the code will … Read More

How To Display Custom Content to Search Engine Visitors

There are so many WordPress blog, some of them added unique features, right now I will show you how to display custom content to Search Engine visitors only, You can replace what do you want to be added on Search … Read More

How To Add Content to the End of Each RSS Post

RSS is simple ways to tell our readers what news on our sie, WordPress has designed with many feed format. And Now let's me show you how to tweak RSS Feed with extra function we can added content on our … Read More

How To Display Total FeedBurner Reader in Text

FeedBurner is easy method to display our total reader. And using a little PHP code we can display our total FeedBurner Reader in Text in WordPress is easily. To implemented this code is easy, all need to do write down … Read More

How To Publish The Feed Later

This is another nice tweak for your WordPress, with Publish The Feed later, you can schedule it and make it more easy to your reader. or do you have another plan? I got this tips from WP Engineer, Like we … Read More

The Best Way to Insert Custom Content into Feeds / WordPress

My 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 read more

Source: http://wptricks.net/the-best-way-to-insert-custom-content-into-feeds/

kisah seks best - WordPress Tricks & Tips

Daily The Best WordPress Tricks and WordPress Tips to make your The Best Way to Insert Custom Content into Feeds read more

Source: http://wptricks.net/archives/kisah-seks-best

php - What is the best way to get RSS Feeds into a MySQL Database

What is the best way to get RSS Feeds into a MySQL Database am trying to take several RSS feeds, and put the content of them into works end-to-end (parse RSS, insert into read more

Source: http://stackoverflow.com/questions/471103/what-is-the-best-way-to-get-rss-feeds-into-a-mysql-database

The 7 Best Feeds For RSS Weather Updates - Cool Websites, Software

Skip to content; Skip to sidebar When you insert the URL feed address into your reader The best way to make use of these individual location feeds is to group them by read more

Source: http://www.makeuseof.com/tag/7-feeds-rss-weather-updates/

How to Embed RSS Feeds into HTML Web Pages - The Easy Way

there are tons of scripts that convert RSS feeds into So the best way is insert rss in .php format. So search engine news always change every day (we get fresh content read more

Source: http://www.labnol.org/internet/tools/embed-rss-feeds-add-html-websites-javascript/2515/


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>