I’d like to add custom fields in my custom post type to the RSS feed for that post type located at http://example.com/feed/?post_type=my_custom_post_type
I’ve seen info on doing this for the regular feed but nothing for how to rewrite the custom post type feed.
I’ll need to add 10 – 15 items to the feed (1st act, 2nd act, 3rd act, price, purchase link…)
You should be able to substitute and any other meta values you need to add to the feed.
Hi @curtismchale:
Piggybacking off @prettyboymp’s excellent answer,with my spin on it, here’s how you can do multiple custom fields (I did 3, you can do more):
P.S. Be sure to give @prettyboymp props because I didn’t know how to do this prior to his answer. I’m just answering too because I’m not sure how long it will be before he returns so I decided to give you an answer in the mean time.
THANK YOU THANK YOU for this excellent piece of information.
I wanted to extend what the other two have written already…
For this to validate, you must have a custom namespace.
Here’s how you do that:
And then prefix the field name item with the custom namespace
In this example, I’ve used “mycustomfields”
See below:
On a side note you can use an action to hook into any of the 3