WordPress.org

Ready to get started?Download WordPress

Forums

Custom Feed with Multiple Categories (4 posts)

  1. TheLeggett
    Member
    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
    Member
    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.

    http://www.theleggett.com/2008/12/15/fixing-the-wordpress-27-multiple-category-feed-error/

  3. akoyfman
    Member
    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
    Member
    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