WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a WP_Query returning a list of posts of a particular post type and with a certain meta_value (custom field value)

Is there a way generate an RSS feed based of these results ?

share|improve this question
up vote 1 down vote accepted

Look at this: http://www.seodenver.com/custom-rss-feed-in-wordpress/

share|improve this answer

You should use add_feed() function (take name of feed and callback) to add new feed, it will take care of settings up hooks and rewrite rules automagically.

Then in your callback function you can use query_posts() to override query before loading template.

share|improve this answer
+1 for query_posts() – kaiser Jan 30 '15 at 9:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.