Skip Navigation

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

This support ticket is created hace 6 años, 5 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Autor
Mensajes
#907667

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

Link to a page where the issue can be seen: enlace oculto

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:
enlace oculto
enlace oculto

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