Skip Navigation

[Resolved] Custom field resets if changed by the user with custom role

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

Problem: I have a custom select field. When admins edit a post in wp-admin, they can change the field selection successfully. When Users with a custom role edit the same post, the custom field resets and nothing is selected.

Solution: In this case, it appears that HTML in the field content (value) is the main problem. Replace HTML in the field content with a basic number, then resave the posts if needed.

This support ticket is created 5 years, 10 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1191503

I have created a new role for my site - it named "Poster" (hidden link)

The user with this role must add new casino reviews to my site. So I hide all no needed from this user who has role 'Poster' - hidden link

And all works fine except one:

For example, the page with casino review - hidden link

I have the four custom fields which display what currency allow on the casino - hidden link (front-end - hidden link)

And if I (with role "Administrator" ) fill this four fields (hidden link) all works fine. But if I choose the role Poster and will try to fill these fields they will not save and will be reset.

It is true just for these four fields, maybe because they have type "Radio". Other fields work correctly regardless of role.

Please see what the problem is.

#1191682

Hi, sorry but I'm not able to log in using either account you provided. Can you provide updated login credentials in the private reply fields here?

#1192124

I am sorry, following access is correct:

*information was delete*

==================

And I have a new problem with the same site. Please, could you check?

Problem with the View which contains filter - hidden link (it is main page - hidden link). I do now know why, but filter not adding new fields and not working

#1192127

I sent a private message, but because of some reasons this message wasn't sent like private so, I deleted my info. How can I send you my login/pass info?

#1192245

I'm reactivating private reply fields here, can you try again?

#1192246
#1192286

Okay I think the problem is in the Контент пользовательского поля of each radio field option. You should not use HTML in the content area like this:

<i class='fa fa-check'></i>

HTML is okay in the text area, but not in the content. Sometimes lower-level Users do not have permission to save HTML values for custom fields, which causes problems. I have made the adjustment to save a 1 (check) or a 2 (times) for each of these fields, and now the Poster can change the fields successfully in wp-admin. Please test by saving the post and let me know if the problem is not completely resolved.

#1193634

Thanks, seems like all is okay now. I understood what my mistake was.

Can you help with the second problem which I described above?

"And I have a new problem with the same site. Please, could you check?

Problem with the View which contains filter - hidden link (it is main page - hidden link). I do now know why, but filter not adding new fields and not working"

Or will be better to start a new topic?

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/filter-not-working-4/

#1193797

Okay sure, I have split your second question into a separate ticket so we can discuss it in more detail. This helps us keep the forum organized.

#1193800

My issue is resolved now. Thank, best product support ever I have seen!