Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I wish to create a feed of my blog which is a feed of two categories OR the feed of some tag and not the feed of some other category

I know how to do "have a feed of this1 + this2 categories", but how do you do "OR" in a feed URL? (and in general, is more complex operators on the URL possible, and how?)

Links that don't answer the question (but help define it):

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Feeds are essentially WordPress Loop with customized template. So it will take regular query_posts() arguments in URL. For example see /wp-includes/feed-rss2.php template.

Since query_posts() doesn't handle OR logic you describe it isn't possible with URL alone.

You will have to write your own feed template that runs and concatenates two sets of post. I think it will work simply as page template, but can also be hooked into existing feed mechanics, see do_feed().

share|improve this answer
add comment

Your Answer

 
discard

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.