Skip Navigation

[Resolved] Custom post types and fields not appearing in rss feed

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Author
Posts
#907667

I am trying to: Show custom post types and fields into rss feed

Link to a page where the issue can be seen: hidden link

I expected to see: All the fields in the rss field/

Instead, I got: No custom post types and fields in the rss feed

#907722

1. Set up a Custom Post Type and create at least one post in it

2. Create a WordPress Archive for this Custom Post Type

3. Check the Archive on the Front-end, by adding /feed at the end of your URL.
==> You will see a fine output of RSS Feed.

Until here, this should work just fine according to my tests:
hidden link
hidden link

With this 4th step although there are issues, in case you use Toolset Layouts:

4. Create a Layout, and assign it to the CPT archive and add the WPA you created above as cell
==> Now the archive front end shows a messy RSS Feed full with Views and Layouts HTML (div, etc).

This is in the progress of being resolved and it affects only Toolset Layouts

To customize your RSS feed, and add Custom types, you can follow the WordPress API and apply your code to rss2_item:
https://wordpress.stackexchange.com/questions/3801/add-custom-fields-to-custom-post-type-rss
https://codex.wordpress.org/Plugin_API/Action_Reference/rss2_item