Skip Navigation

[Resolved] Google maps code delete after save

This thread is resolved. Here is a description of the problem and solution.

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 2 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.

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by tomaszB-4 2 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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