[Résolu] how to protect specific fields from being included in rss feeds?
This support ticket is created Il y a 1 année et 4 mois. 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
If you have specific questions about how to access information from Types fields, I'll be glad to answer any for you here. If this seems beyond the scope of your own coding abilities, we also have a portal where you can connect with professional developers: - https://toolset.com/contractors
thanks - I'm not sure if this is pointing me in the right direction. I don't have an issue with creating a feed, but in hiding cpt fields from feeds: what I'm finding is that if I apply a regular wp post category to a custom post type record, that all the fields in the custom post type record are displayed in the feed. We have private fields in the records and that's fine in terms of front end display through views and blocks, because we don't output those fields. but I don't want these private fields to show up in a public facing feed. Is the only solution to not apply regular categories to a post? and does the same thing happen with toolset taxonomies?
There is no such feature offered by Toolset to manipulate the feeds. You will have to add your own code to remove that or try to find any suitable plugin that help you out in this matter.
Sorry but still its not clear what field. Are you talking about custom post field or custom taxonomy field?
Here is a brand new sandbox site where you can add your desired post type and taxonomies and run a test and let me know where with what feed and what custom fields you need help with.
You can auto-login to the sandbox site using the following link:
- lien caché
Here is the sandbox site and you can auto-login to it using the following link:
- lien caché
I've created "book" post type and following custom field group that is having "book-title" custom field and this custom field group is set to display with "book" post type:
- lien caché
This is the book post having custom field "book-title" value setup:
- lien caché
When I load the RSS feed I do see all book posts but without custom fields (that should be expected):
- lien caché