Support » Fixing WordPress » Custom RSS feed based on a list of posts

  • Hi all,

    I tried searching the codex but I didn’t really find an answer. Is there an easy way to generate an RSS feed based on a list of posts specified by myself?

    Ideally I’d like to have something that takes an array of post ID’s and generates a feed based on that.

    Is it possible with standard WP functions, is there a plugin that can do this or do I have to code it myself?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Place this array of posts into a category, then, compliments of MacManX, place /feed/ at the end of your newly created category (assume you are using “pretty” permalinks) and you have your solution.

    More information on this topic can be garnered from reading these posts:

    http://wordpress.org/support/search.php?q=rss+categories

    This is very nice but unfortunately it won’t work for me. The posts I want to join in a RSS can come from any category. I can provide a list of posts in my code so that’s what I need to make an RSS feed of….

    TechGnome

    (@techgnome)

    Moderator

    But posts can belong to more than one category…. plus if you maintain your list, then any time you want to add or remvove a post from the list, you would have to modify the code. By using the category solution, it’s a simple matter of adding (or removing) the post from the category.

    -tg

    No no… I think your guys misunderstand what I need. It’s for my new Taggerati plugin. The thing is, it would be nice if people can subscribe to the RSS feed of a tag. I can, at any time, automatically generate a list of posts and with the wpdb class it’s no problem to loop through them and get all stuff that needs to go into the RSS feed.

    Therefore I’m just wondering if there’s some RSS builder / function / plugin or any other method available that can generate a feed just based on that array of posts.

    Hope it’s more clear now? 😉

    Wouldn’t you be able to create a template page that returned the posts of a certain tag that mimics index.php and then append /feed to the URL to get the inbuilt feed handling? However I don’t know how that inbuilt feed stuff works but it does sound logical…

    Sounds like a great idea! I’ll try that!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom RSS feed based on a list of posts’ is closed to new replies.