How to Edit the WordPress RSS Feed
147Ever thought you could make some improvements to your RSS feed? Like letting it cover more (or less!) content? Or adding some extra details onto the end of your posts?
In this post, I’m going to show you how to do exactly that. Here’s what we’ll be covering:
- How to include both posts and pages in your feeds.
- How to add thumbnails to your feeds.
- How to exclude posts with a certain tag.
- Set how many posts appear in your feed (Without affecting the rest of your site).
- How to show only posts from a certain category.
- How to add content to the end of each post (e.g. link to your latest featured post).
All of this is going to take place in the functions.php file of your theme. If your theme doesn’t have one, just create a file in your theme’s folder with that name and let’s get to it! (Make sure all of this code goes between the opening tag in the file)
Include Pages in WordPress Feed
What we will do is add a filter to WordPress when it is searching for posts. The filter is going to check if the posts are for a feed, and if they are, it’s going to adjust the query to include both posts and pages.
function feedFilter($query) { if ($query->is_feed) { $query->set('post_type','any'); } return $query; } add_filter('pre_get_posts','feedFilter'); |
If you wanted to show only pages, then you could change the word ‘any’ to ‘page’ (or to the name of any custom post types you’ve created).
You may want to be more specific and only show top level pages. In that case, you could use this code with an extra line to show only top level pages:
function feedFilter($query) { if ($query->is_feed) { $query->set('post_type','any'); $query->set('post_parent','0'); } return $query; } add_filter('pre_get_posts','feedFilter'); |
Add Thumbnails to RSS Feed
The process this time is slightly different. Again we’re going to add a filter to the query and test if the page is for an RSS feed. This time we won’t adjust the query though (We’ll return it exactly as it was), but we will add a filter to the_content (i.e. the content of your posts).
function feedFilter($query) { if ($query->is_feed) { add_filter('the_content', 'feedContentFilter'); } return $query; } add_filter('pre_get_posts','feedFilter'); function feedContentFilter($content) { $thumbId = get_post_thumbnail_id(); if($thumbId) { $img = wp_get_attachment_image_src($thumbId); $image = '<img align="left" src="'. $img[0] .'" alt="" width="'. $img[1] .'" height="'. $img[2] .'" />'; echo $image; } return $content; } |
We’re using a slightly roundabout way of getting the thumbnail image so that we can add the align="left" part. A lot of feed readers strip out inline CSS, but using the old-fashioned align property should work. And of course, if you don’t want your images aligned to the left, just take out the align="left" altogether!
You can use that code to get any size of thumbnail as well, e.g. let’s say you had added this line to your functions.php file to define a special thumbnail size just for feeds:
add_image_size('feed', 600, 100, true); |
Then you could adjust the 7th line from the end to read:
$img = wp_get_attachment_image_src($thumbId, 'feed'); |
How to Exclude Posts With a Certain Tag
This time we’re going to do something similar to the first example. We’ll be using ‘set’ to adjust the query object. If you want to read more about what you can do with querys, check out the WP_Query codex page.
The only nuisance is that we have to first work out the ID of the tag we want to exclude. To do this, go to Posts > Post Tags, then find the tag you want to exclude and click on it. In your browser’s address bar, you’ll see that part of the URL looks like this: &tag_ID=29
So in that case, 29 is the tag ID.
function feedFilter($query) { if ($query->is_feed) { $tags = array('29'); $query->set('tag__not_in', $tags); } return $query; } add_filter('pre_get_posts','feedFilter'); |
If you wanted to exclude posts from multiple tags, you could list them on the 3rd line, e.g.
$tags = array('29', '31', '124'); |
Control How Many Posts Appear in the Feed
In your dashboard, under Settings > Reading, you can set how many posts appear on your site pages and in your feed. However, there may be times when you want to show more posts in your feed than on your site.
e.g. your site may look best with just 3 or 4 posts per page, but you’d definitely want more than that in your feed!
To make that change, just use the code below:
function feedFilter($query) { if ($query->is_feed) { $query->set('posts_per_page','20'); } return $query; } add_filter('pre_get_posts','feedFilter'); |
Feel free to change the 20 to any number you like!
Show Posts from Only One Category
Normal blogs are unlikely to do this, but if you were using WordPress as a CMS, you may want to publish only posts from your “blog” category. In that case, you would do this:
function feedFilter($query) { if ($query->is_feed) { $query->set('category_name', 'blog'); } return $query; } add_filter('pre_get_posts','feedFilter'); |
And again, you could turn that on its head to exclude posts from a certain category. In that case, the 3rd line would be:
$query->set('cat', '-45'); |
Where 45 is the ID of the category (The minus sign must be included as well, otherwise you’ll end up showing only posts from category 45!).
Add Content to the End of Each RSS Post
There are plenty of reason you might want to add some content to the end of your RSS posts. In this first example, we’ll add a simple line that says:
"Thanks for reading, check out Your Blog name for more WordPress news!"
function feedFilter($query) { if ($query->is_feed) { add_filter('the_content','feedContentFilter'); } return $query; } add_filter('pre_get_posts','feedFilter'); function feedContentFilter($content) { $content .= '<p>Thanks for reading, check out <a href="'. get_bloginfo('url') .'">'. get_bloginfo('name') .'</a> for more WordPress news!</p>'; return $content; } |
Now let’s do something slightly cooler. Let’s say that you have a featured content slider on your homepage, or a featured posts list in your sidebar, and you’ve set it up so that to add posts to either of these, you tag them with “featured.”
In this last example, we’ll add a byline to your feed posts that says:
"Make sure not to miss our latest featured post: Post Title"
In our feedContentFIlter function this time, we will run a query to get the latest post tagged with featured. We’ll then use the post object we get back to insert the post title and address.
function feedFilter($query) { if ($query->is_feed) { add_filter('the_content','feedContentFilter'); } return $query; } add_filter('pre_get_posts','feedFilter'); function feedContentFilter($content) { $args = array( 'numberposts' => 1, 'tag' => 'featured' ); $posts = get_posts($args); if($posts) { foreach($posts as $post) { $content .= '<p>Make sure not to miss our latest featured post: <a href="'. get_permalink($post->ID) .'">'. $post->post_title .'</a>!</p>'; } } return $content; } |
You could enhance that however you like, e.g. including some inline CSS to adjust the appearance of the line.
How Else Could You Edit Your Feed?
Those are some ideas for what you could do with your feed, but is there anything else you’d like to do with it?
Let me know in the comments and if there are any great ideas, I’ll show you how to do them!
Update (20th August): Some commenters have mentioned already that all of these changes are for the main feed. If you’d like to create a new feed and customize that, check out this post by WordPress Recipes for a good starting point! (You’ll need to adapt the code samples above slightly though)
Enjoy this post? You should follow me on Twitter!
Hi, nice one… but can I have more than one feed for my wordpress site, if yes, then how?
Hi Zaid, yep, you can add as many feeds as you want!
Check out this recipe from WordPress Recipes to see how to do it: http://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress
You’d have to adapt some of what I did above (how you added the filters to it), but that would work then. Easier option for some of the changes would be to just edit the query_posts line in that recipe though!
Michael,
This is a very thorough tutorial. I like the idea of creating special feeds for filtered content.
I gotta play around with this a little.
Thanks,
Chris
Thanks Christopher, let me know how you get on! :D
I agree with Chris – great tutorial and will have to play around with it some (our company blog is a little “behind” right now).
Me too. I love this tutorial because it is simple and easy to follow. I want it to try for myself and get to learn more stuffs and to master it
Thx for a great tut.
I expect this will make changes to the default RSS /feed/ right?
What, if I would like to keep my existing RSS feed, but also have to offer a special RSS feed to a partner-site. Any thoughts or ideas, how to do that?
Yep, this would all affect your default feed.
To set up special feeds, take a look at this WordPress Recipe: http://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress
It would require a little more tinkering, but should still work nicely. :)
Nice tips! More hacks at http://blog.davidcostales.com/2010/06/toma-el-control-de-tus-feeds-en-wordpress/ like.. how to disable feeds, schedule your feeds and more.
Nice post David, thanks for sharing!
Thanks for your teachings Michael. I had never read anywhere else a complete post on how to change the rss feed. Excellent possibilities for marketing and a good choice to make the user visit your site (instead of presenting only partial feeds). Also enjoy your site, your comment area layout is superb. Thanks again.
Thanks, cool to hear you like the comments! :D
Best way for dealing with this would be to simply have FeedBurner handle your feeds. Simple, easy, and fast!
FeedBurner couldn’t do all of this though (Like highlighting your featured content?). Their feed flares are pretty cool for adding social networking links though!
Guess you could always do both!
Hey, nice article.
Really useful. Thanks
I have often wondered how bloggers like John Chow display ads in their RSS feeds. I don’t just mean Adsense.
Hi, Dean. You could show ads in your RSS header or footer by using the Feed Layout plug-in. That’s what I use on my blog’s feed and it works pretty well ;-)
I was in need of two things out of these 1. is adding thumbnails and 2.is to add specific content at post end. I will try this in my blog. The steps look simple. I feel the the blog feed can be made much better if these techniques are used and it will also make the present subscribers to stay long.
I have one doubt?
Your blog comment section says “We Dofollow” but when I right clicked and saw “View Source” all the comments are shown as rel=’external nofollow’. I want to know whether have u changed ur blog to nofollow one or am I saying wrongly.
It is DoFollow, but you have to make at least 3 comments before it’s removed on your links.
That said, I’m going to be removing it altogether soon. Wayyyyyy too much spam and useless comments getting through (Not your comment, though somehow the spam filter flagged it! Sorry!).
Glad you liked the post though. Let me know if you have any issues using those 2 on your feed!
Sorry for the newbee question,
does the above tutorial mean that i can COPY PASTE the code into the functions PHP? or do i need to change parameters or other things?
I am trying to add IMAGES to the RSS feed.
Another one – if a post has more that one image – which image is taken for the feed?
Thanx for your reply
Seb
Hi Seb,
You can make all of the images in your posts show up in the feed if you want. Are you showing full posts in your feed, or only partial posts? (The setting is under Settings > Reading).
If you’re showing full posts, any images you add should already be showing up.
If you’re showing partial posts, then you can use the code in this post to add your thumbnail image. You can copy and paste the code directly from the post into the functions.php file.
The image chosen would be the one you have set as your featured image. Does your theme use featured images/thumbnails though?
If not, just add this line to the functions.php file as well:
add_theme_support(‘post-thumbnails’);
Then you’ll see a box for setting the featured image appear on your “Write Post” pages now!
I copy pasted the thumbnail code into the functions.php
now i receive the folling error:
Parse error: syntax error, unexpected $end
can you let me know what i do wrong?
http://www.drawert.com/feed
where do i edit the thumbnail size? also in the functions.php or in the thumbnail.php? if i dont specify a size, will it automatically pull my featured image?
This is some great stuff. Thanks for sharing
Great info will be visiting again.
Very helpful, thx
This could also be used to deter content scrapers, maybe have a feed designed specially for them :)
Haha, now *that* is a good idea! :D
Question:
For the “thumbnails in RSS feed” part, how would you go about making the thumbnail shown in the feed to link to the post it belongs to.
To see what I mean, you can check out my feed from my site – I’m doing it wrong, as it echoes the URL before the thumbnail and it links the thumbnail to the homepage, not the actual post.
Any ideas are welcome and highly appreciated.
Thanks! :)
thats truly inspire me thanks and best regard
Hey Michael,
I was just thinking about how to edit the RSS feed on WordPress the other day. Even though I did not want to change anything, just thought it would be nice to know for future reference. This article really helped, thanks for posting.
Something I’ve been trying to work out is how to exclude content that appears after the “more” tag when you’ve chosen to display full entries for your feed by default. For example, for the most part I want my full posts to show up in feeds so I’ve selected the WordPress option to do this. However, there are times where I might want to only include the top portion of a post and then hide everything after the “more” tag, e.g. if I have a photo heavy post that I don’t want to slow down someone’s feed reader or if I’m talking about TV/movie spoilers, etc. WordPress doesn’t seem to have this type of flexibility built-in and I haven’t yet found a plug-in that does precisely what I want.
I’m a bit ashamed to say that I still don’t have a complete grasp on setting up RSS feeds. I thought all I needed to know was how to use feedburner … Guess I need to learn a whole lot more than that. I’ll need to study this artlice more than once. Hey! I guess I could print it out couldn’t I? (Duhhh :P )
Gary Anderson
aka- @GanderCo
Fantastic tutorial, Im going to follow it and read it through a number of times before I get a grasp on RSS feeds but, this is exactly the kind of help I needed. Thank you :).
great post
Highly useful post, specially the hack to exclude certain posts with a particular tag!
Sorry to say that the hack is not working. I tried removing apostrophe for the ID, it still doesn’t work
I have days to want to learn how to edit rss of my word press blog thank’s for the tuts
Great info! I will be visiting your blog regularly.
This is a really cool post!
The “increase the number of my posts visible via rss feed” is not working. It just ruined my functions.php :-(
BTW if you’re getting stressed out by the amount of spam due to your being part of the dofollow movement, you might want to consider applying a commenting policy. That’s what I do @ my blog – StrictlyOnlineBiz.
Very good post… Tank You
Do i need buy a domain for the wordpress?
Amazing post! I am stuck right now trying to figure out how to sort a feed by date. Right now it is displaying in oldest > newest. Is there anyway to add a hook in for newest posts first?
Thanks in advance.
It help me to insert more a copyright line to my rss feed because someone are using my feed to re-publish content again.
Thanks – the “Show Posts from Only One Category” was just what I was lookig for.
wow..great StuFF…thank for sharing this.. i will try this in local host :D
Love the idea of special feeds for filtered comments. Thanks for sharing.
Now this is gonna come real handy with my new blog. I plan to build a loyal supporter base for it. Lets see how it goes , I ll surely keep you people updated !
Hi..I’m wondering how to add custom tags / meta tags to feed,.. is it possible? I want to add my blog to my Digg account, but it needs site verification by ading tags to feed. Can you tell me how..? thanks before
I found interesting post about how to receive RSS content via Ajax and then display it in pop-up like window. Link here.
This is what I looking, I tried to added my Facebook Pages links on Feed.
Waiting on response on the question regarding multiple feeds… thanks!
Cool post Mike – been wanting to figure out how to add thumbnails to the feeds, very cool to see the example here :-)
nice post! thnx :)
I don’t know much about code, so I tend to use wordpress plugins to help me out. There’s one I use called “RSS Footers” which is handy for stamping the blog name at the bottom of each feed post.
I’m the same way Dealspwn. I use WP plugins but this is a nice change.
Thanks for this great tutorial. No need for plugins to do SOME of these tricks anymore!
I am looking for this but I am using Thesis framework, anyone know how to implement on Thesis theme? Thanks
Im also running a Thesis platform, and i attempted to do this and i messed up on my thesis . And we all know how sensitive Thesis is with code, but thank god i got my website back up and running. Great tutorial, im sure it would work on any other platform but Thesis, Unless you have a tutorial just for Thesis. Thanks
Jeza
ah, how many readers I still read and learn about it. Because many visitors want to know how to show numbers of readers.
Have some idea for more information about it :
How you can add juste the url of your page without any content ?
The last paragraph of your content ?
Sorry but the one excluding CATEGORY from post doesn’t work…
Can U help me please? THANKS
Thanks for sharing. Great help to me. Still a question:
How can reader of a wordpress blog decide to get only the feed of blog entries with a specific tag/tags (no matter in which category the blog entry is posted?
Does this depend on the feed reader or do I need to configure my wordpress blog to allow for those feeds?
Thanx
Luk
Whenever I open my RSS URL, the XML file shows up (with the channels, items, title, etc.). I noticed that there is no title indicated within the tags that’s why my site appears with the name “Untitled Subscription” on feed readers.
The problem is, I cannot locate the XML file on my WordPress-2.2.1 folder (so that I could put a title). I tried opening rss.php, rss2.php and feed.php but they only show this instead of the XML file:
Where do I find it?
Garsoniere Regim Hotelier
I assume this will work fine with Feedburner?
Hey that’s really cool ,
Now theres a chance to get backlink for your blog’s url – in the feed :)
Can we add tags in wp feed ?
This is a nice change from WP Plugins!
That how-to add thumbnails to rss is dope! Thanks Michael.
OK, this functionality is key as “Custom Post Types”, which are really “Custom Pages” are not put in the RSS feed by default. This could be good or bad depending what you are trying to do. What I don’t like is the answer that “custom posts aren’t supposed to be blog posts thus. . .blah. . .excuse. . .etc.”. I’m going to need to play with the above as we are using custom post types to simplify video and image posts to a new blog we are launching and I definitely want these in the RSS feed!!!
thanks! it’s useful!
Good change from WP Plugins!
Thanks for the tips and instructions on RSS feeds. Very helpful!
I don’t know much about of these commands. These are too technical for me. I’m glad that you provided these tutorials.
Good Stuff thanks!
Worth reading! Thanks Michael.
Very useful post. I will use it for my new (future :)) blog. Regards!
I’m looking for a very specific piece of information related to RSS feeds from WordPress:
1) Is it possible to parse the tags from a post to be separate elements, i.e., trigger words within the XML (i.e., foo, foo2?
adding thumbnails to rss feed it something new to new for me. will try this new one.
thanks a lot
There are so many bloggers who already pointed out the importance of RSS feed for a site. Despite of that fact, not all actually use it for their benefit.
Good post and worth reading. Thanx
hi, I am new to wordpress,
I like this post, I have some confusion i want to know when this fillter will be called, will it be called wherever we used bloginfo(‘rss2_url’)?
also i want to know how to get the posts only from 2 categories.
Wow, I had no idea you could do this. I always thought the RSS feed was some untouchable thing that just happened…
Thanks for the RSS help!
Great info! I will be visiting your blog regularly
Hi. Nice post with good piece of information. Keep it up. Looking forwards to your next posts.
Nice stuffs here. Really appreciate the explanation and this is of great help to make people understand clearly.
This is a very thorough tutorial. I like the idea of creating special feeds for filtered content. :D
your article is interesting. thank you for sharing this info
cool…much help for me…
thanks…
Thank you, amazing post…
Good tips! This will be handy when I am editing my RSS feed next time… oh the tip on adding featured image support is pretty neat too!
Nice article, I think adding the query to add both pages and posts is a MUST.
I read your post, it was amazing. Simple to understand and helpful. Looks very useful. Thanks for sharing. Keep it up.
Thanks for the codes.I just now edited my RSS feed post count.I must say a unique and helpful article for those newbies.
Useful post for those new into wordpress blogging. RSS feed is very important now to bloggers because of useful plugins that WP offers.
Thanks you admin good arshive
Hi. Is there a way to remove pictures from my RSS feed, in fuctions.php? In my RSS feed, I don’t want to show the pictures I’m adding to my blog posts.
I tried adding pages to my feed and I finally made it with help of this post and few other posts. Whatever I try from ur site works fine for me.
يعطيك الف عافيه على طرحك الرائع
Thank you verymuch. I love this how to article. I had a problem regarding edting my feed, to put a small code on it, I thought it was a big task, but your tutorial helped me alot. Thanks Again. :)
I Was looking right for this :) Big thanks – bookmarked
Tip: RSS Feeds are really useful in regards to Search Engine Optimisation. If you take your rss and submit it to RSS directories you can make 100s of extra backlinks for your website.
How about adding the author to the post? I know how to do this within core, but can’t seem to get my head around the syntax for adding this to the functions.php file.
It could either add the author’s name to the title of the post (so it’s part of the same active link to the post) or live just below that as plain text.
Any clues?
Thank you. I will test it on my own blog later.
RSS feeds gives opportunity to bloggers for updating their post. It’s a good way to let others know about the topics you want them to read without requiring them to dig too much.
Is there any way to edit the way links appear in the feed or to strip the links out of the feed?
Some plugins like Viper’s Video Quicktags insert a link to the post when there is a video embedded and a text like “View the original post to see this video”. I want something like that! ;-)
Just wanted to say thanks, the RSS image feed/resize did exactly what I needed it to do. Now if I could just get simplepie to parse it, I’d be a happy camper.
This post helped me out, thanks! I use WP as a CMS, and I needed to restrict the feed to only the blog category. Thanks!
Great article, Thanks.
I’m wondering if it’s possible to control the order of results if the function is set both pages and posts. Like say pages first then posts? Can that be done?
Thanks again!
I am a few years out of the business, so parts of your article are challenging for me, but I write almost daily on our blog. You offered, so I will ask:
How do I put old articles into the current RSS stream?
Because of the nature of my blog, stuff comes up weekly that I have already written about (a year ago, two years ago, etc). If I edit the old article and change the publish date, it gets added to the RSS feed, but the old article URL is a broken link. If I create a new article with the same content, it gets added to the feed (of course), but search engines will begin to hate me because I have so many duplicate pages.
Do you know a way to insert old articles into the RSS feed?
Thank you.
Seraphim Holland
seraphim@orthodox.net
Hi Michael… i need to ask that my blog is showing feeds with excerpt and your feeds show the full content like full post on ur feeds.. how can i do that…. ie get full content in my rss feed with images n full content…
thanks
maybe over my head all of this but I really do want the images in RSS feeds so…. do I just open the functions php file and paste this straight into it? function feedFilter($query) {
if ($query->is_feed) {
add_filter(‘the_content’, ‘feedContentFilter’);
}
return $query;
}
add_filter(‘pre_get_posts’,’feedFilter’);
function feedContentFilter($content) {
$thumbId = get_post_thumbnail_id();
if($thumbId) {
$img = wp_get_attachment_image_src($thumbId);
$image = ”;
echo $image;
}
return $content;
}
cheers
I am trying to edit the links sent in my RSS feed.
Long story short, I need my links to show up like:
http://www.mydomain.com/#/2011/PostName/
NOT:
http://www.mydomain.com/2011/PostName/
Would you be able to help out with this?
Thanks!
I am placing my Blog on the Kindle. I wanted to change the way the feed appears. Currently it shows up like this:
Transformation Magazine» Good News
I need it to just show up like this:
Good News
It shows the website and then the category. But I only want to show the category.
Do you have any idea of how this can be done?
Is there any way I can have just the orange RSS logo with no blog title or article titles next to it?
Thanks!
great post! I have searched for this before..thanks a lot mate!
I want to change where the RSS feed is. I want to use a feedburner RSS feed instead of the one that wordpress gives me but can’t figure out how to do it.
hey i want to put some ads other than Adsense in my feed can you tell me how to do it
Hi. Thanks for writing this post. Are you able to tell me/explain how I can place a link in the bottom of my RSS feed to entice people to comment? Maybe just the words: Leave a comment, but with a link to the comments section of that blog post?
I was all set to give it a crack myself with your “add content to the end of your rss feed” info, but I realised the link back to the post will need to be dynamic. Unfortunately it’s beyond my skill level.
Here’s an example post: http://bartkowalski.com/2011/06/things-ikea-food-packet-clippy-things/
Thanks in advance
Bart
Hi, I recently installed the Cooliris plugin for my pictures. There’s an icon that shows up on the pictures that allows you to open up the picture in a new window. I know that it’s possible to specify the links in the RSS feed so that it takes me to a link of my choice rather than the picture in a new windown; but, I do not know where to go to edit the RSS feed. Could you help me with this?
A really useful blog post, I have used code similar to this but to be able to tailor this code and be able to add thumbnails etc it is good to have a blog like this. I think that I will be not only using this code in the future but consider when I am designing the layout of a news post that I can add thumbnails into each post. Thanks for your help.
have certain images in my post that I do not want to be fed in RSS. They are wrapped around div tags. Can I edit my RSS feed to remove these div id tags from posts?
It is exactly what i was looking for. Thanks for sharing.
RSS (often dubbed 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.
I have around 500-600 page, author feed errors, and page, feed title is page not found.. How can i sort out it???
If someone has a feed to your site does this help you or hurt you? I thought if they had a feed, then there is no reason to return to your site and you loose hits?
Wonderful list ! Thanks you very much!
I tried to add the code you gave at the top of the page but I have no idea “(Make sure all of this code goes between the opening tag in the file)” where this is!
What I really want to do is create a feed for this one page only (so I can use the Podcast feed for iTunes)
http://onholdmessagesfor69dollars.com/music-on-hold-podcast/
If you can help it would be TREMENDOUSLY appreciated!
I am interested to know how you could edit the style of the feed. Do feeds use a CSS file? Not exactly sure how they work but have just made them available across my blog.
Great information, thanks.
Any idea how I could edit the credits line in the feed? In my feed reader (NetNewsWire) the final line in each feed is of the form:
favicon / url / date and time / author credit / post tags / comments link
In my particular case, I want to remove the post tags and comments link.
How do you disable RSS feeds, I do not want them and cannot see how to do this.
The more often I visit this blog the more I’m amazed how it is made
It was interesting posts
Way cool! Some very valid points! I appreciate you penning this article and the rest of the site is also really good.
Please I need a little help.
My RSS feeds on my sites do no have titles. They keep on showing blanks on title of my email subcribers.
How do I correct this issue?
Thanks.
Thank you. Helped a lot. I used the rss feeds from specific catégories.
Thanks for the awesome article! I have a question though, I just launched a new website: shamelesstraveler.com and my RSS feed is linking to my old website when you subscribe to it. So essentially, when you subscribe it sends you to my partner site which is not good, is there a way to change my RSS Feed to have it send people to my new site when they subscribe? Not sure what happened. Thanks for your help!! -Stephen
There are several ways to read RSS feed in PHP, but this one is surely one of the easiest.
channel->item as $entry) {
echo “link’ title=’$entry->title’>” . $entry->title . “”;
}
?>
Source:
http://phphelp.co/2012/04/23/how-to-read-rss-feed-in-php/
OR
http://addr.pk/a0401
please
how can i remove rss from all my site
how can i do that please
Man, your are awesome!
I was looking for adding thumbnails to my feeds.
Thanks.
When I edit a post that was previously published, it shows up again in my feed as a new post, and goes out in the mass email to my subscribers. I really only want NEW posts to go out in the feed email. Is there any way to prevent edited posts from appearing in the feed?
Well presented valuable information. Thanks
Thank you for handy information. I used the RSS feeds from specific categories on my blog.
Aaaargh…
I spent a whole day yesterday trying to add a featured image to my RSS feed. When I found your post, it felt like glory!
And now I just upgraded to WP 3.5 and guess what? It stopped working… : (
Desperately in need for help… Any ideas will be welcome.
Do you know how to add the tag for a XML RSS file?
It like to add to the xml of the rss something like this:
Thanks!
hELLO!, my question is: how could i show only the 10 last feeds?… i have a blog, but i want to present in rss feeds only the 10 last post each week i write…????