Passer la navigation

[Résolu] Google maps code delete after save

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Google maps code delete after save

Solution:
The only way to allow users with a role lesser than Editor to add unfiltered HTML content to post fields is to elevate them to the roles of Editor or Administrator.

For administrators and editors, please note that the unfiltered HTML contents are enabled by default in Post and User Fields.

Relevant Documentation:
=> https://toolset.com/course-lesson/limitations-on-html-content-in-custom-fields/#user-roles-allowed-to-save-unfiltered-html-in-post-fields

This support ticket is created Il y a 3 years, 11 months. 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par tomaszB-4 Il y a 3 years, 11 months.

Assisté par: Minesh.

Auteur
Publications
#2384475

Hello!

One of my custom field is "multiple line" field.
I store google maps iframe code in that field.

When I save custom post type as admin, the field holds the iframe code.
But if I save this field as a low-level user who has edit permissions for this post type, then all the fields except the field with iframe code are saved.
But if I enter normal text in this field it will be saved.
There appears to be an issue with lower level users write permissions. They can't save the code.

Is there any solution for this? I don't want to give them full administrative rights.

thanks for any hint!
Tomasz

#2384557

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the doc that states the information:
=> https://toolset.com/course-lesson/limitations-on-html-content-in-custom-fields/#user-roles-allowed-to-save-unfiltered-html-in-post-fields


The only way to allow users with a role lesser than Editor to add unfiltered HTML content to post fields is to elevate them to the roles of Editor or Administrator.

For administrators and editors, please note that the unfiltered HTML contents are enabled by default in Post and User Fields.

#2384593

Thanks! I have added editor role for this user and it save every field in form 🙂

best regards
Tomasz