I have a few extra custom fields added into a user’s profile and output them in several places within the frontend. One thing I want to do is add some of those custom fields into the WordPress Feed as RSS elements. As an example, I know that the Author Display Name is output by default but also want to add their Twitter handle into the feed too.
Anyone know a solution to this? Thanks
Check out either the
the_content_feed
andthe_excerpt_rss
filters or use the regular content and excerpt filters with theis_feed
conditional function.The following should get you on the right track:
Note that given the fact that the above uses filters applied to feeds only, the conditional isn’t strictly necessary.