Ready to get started?Download WordPress


Custom Feed with Multiple Categories (4 posts)

  1. TheLeggett
    Posted 5 years ago #

    How do you go about creating a custom feed that outputs multiple categories in WordPress 2.7?

    In the past, http://www.uxbooth.com/feed/?cat=11,12 has worked (This example would link to a feed showing posts from category 11 and 12.)

    However, now this only redirects to the first category listed (in the above example, 11). This has worked in previous versions of WP including 2.6.

    Is there a new way to do this?

  2. TheLeggett
    Posted 5 years ago #

    As a temporary fix, I've uploaded canonical.php from the 2.6.3 build of WordPress. It seems to work alright, but there may be adverse affects I'm unaware of. This really should be looked into.


  3. akoyfman
    Posted 5 years ago #

    Looks like the problem occurs at line 42. Change the original if statement to include is_feed(). You can get the proposed fix from the attachment at http://trac.wordpress.org/ticket/8784

  4. kingkong954
    Posted 5 years ago #

    Thanks for the info Akoyfman -- used your fix, and got the exact result I wanted: single custom rss feed based on multiple categories!

Topic Closed

This topic has been closed to new replies.

About this Topic