WordPress.org

Ready to get started?Download WordPress

Forums

RSS by custom field (5 posts)

  1. handig
    Member
    Posted 1 year ago #

    Hi,
    Trying to understand how you can get a feed for posts with a specific custom field.

    I have a custom field game and this can have the value yes or no.

    So how do I get a rss feed for all the posts that have custom field game with the value yes?

    I tried something like http://www.mywebsite.com/?post_type=game=yes

    But this didn't work.

  2. jeffpurcell
    Member
    Posted 1 year ago #

    Try this (assuming you have permalinks turned on):
    http://www.mywebsite.com/feed/?post_type=game

  3. handig
    Member
    Posted 1 year ago #

    Doesn't filter the feed results to the custom field. I results in the same feed items as http://www.mywebsite.com/feed/

  4. handig
    Member
    Posted 1 year ago #

    I use WordPress multisite. I did some further research and I'm suspecting that it doesn't work on multisite.

    Does somebody know if it should/shouldn't work on multisite?

  5. jeffpurcell
    Member
    Posted 1 year ago #

    I apologize. I misread your original post. I'm not a multisite expert, but I can't see why this would be possible within multisite.

    To start I'd look into creating a custom rss feed inside your theme similar to this:
    http://yoast.com/custom-rss-feeds-wordpress/

    Then add in your own php to validate the existence of the custom field.

    Good Luck.

Topic Closed

This topic has been closed to new replies.

About this Topic