The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

RSS by custom field (5 posts)

  1. handig
    Posted 3 years ago #

    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
    Posted 3 years ago #

    Try this (assuming you have permalinks turned on):

  3. handig
    Posted 3 years 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
    Posted 3 years 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
    Posted 3 years 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:

    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