• Is it possible to create an RSS feed that outputs only posts that are found in 2 specific categories? For example, I don’t want all the posts from category 1 and 2, I only want the posts that are in both category 1 and 2… is that possible? If so, how please?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    review this codex guide: Look at this post:
    http://codex.wordpress.org/WordPress_Feeds

    Thread Starter nando99

    (@nando99)

    Yeah… nothing is jumping out at me to help me with my specific question… am I missing something?

    @nando99

    This page gives you the basics of how feeds are created in WP.

    To create 100% custom feeds from what you posted, you need to understand basic WP_loop php way of working. After, I guess you know every category or parent page post is creating automatically a simple feed itself…

    Like you created a post category called “photos” with 2 or 3 posts in it. WP creates it automatically for category “photos”. Just check the code. It should be called http://www.yoursite.com/photos/feed/ and generate a working feed.

    Example on my blog, with category design-webdesign:
    http://blog.digico.fr/category/design-webdesign/

    It automatically creates a feed of the post category i can call later by XML or any feed.
    http://blog.digico.fr/category/design-webdesign/feed/

    The output is just a simple list of posts in category, outputted as XML data. Just know that WordPress automatically generates feeds for every category in same way (also for comments).

    Hope it helps,

    Moderator t-p

    (@t-p)

    Thread Starter nando99

    (@nando99)

    I may not have been clear… I know feeds are generated automatically for each category and I know you can even combine categories into feed… my question is how to create an rss feed that shows only posts that are in both categories… if its possible of course…

    for example

    post 1 is in category a
    post 2 is in category a, b
    post 3 is in category b
    post 4 is in category a, b

    the feed I want should only show post 2 and 4, not all 4 posts.

    again, I don’t even know if that’s possible…

    That’s possible, just requires some skills (no copy / paste to do that).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating a Custome RSS Feed’ is closed to new replies.