Navigation überspringen

[Gelöst] user nicknames not loading in select field

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
The user was using custom code to display users in a dropdown inside a Toolset Form.

Solution:
It turns out that the code was added to the child theme functions.php file. The child theme was not active.

This support ticket is created vor 4 Jahren, 4 Monaten. 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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von larryL vor 4 Jahren, 4 Monaten.

Assistiert von: Jamal.

Author
Artikel
#1754177

I followed https://toolset.com/forums/topic/dropdown-that-shows-all-users/#post-590063 and it was working. Now none of the users are loading in my cred forms and existing posts data is missing that had a user selected. Please help.

#1756055

Hello and thank you for contacting the Toolset support.

To better assist you with this issue, I'll need to take a closer look at your form. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please provide as many details as possible:
- What form?
- Where is the form displayed/used?
- Where did you add the custom code to pull the users into the form field?

Best regards,
Jamal

#1757633

Thank you for the credentials, I was able to log in, but I am not sure where the users select should appear on the form that I have checked "absence-review-form".

I searched for the custom code and I find it on the "functions.php" file of the child theme, check this screenshot versteckter Link
But, you are, currently, using the parent theme. Check this screenshot versteckter Link

Because the parent theme(Divi) is active, the custom code on the child theme is never executed, so the users select will never be constructed for the forms that are using it.
Please check, if activating the child theme will correct this?
If it does not, please confirm where the users select should appear on the said form. Check this screenshot versteckter Link

If you need to keep the parent theme, copy the custom code into a new entry in Toolset->Settings->Custom Code, and activate it for the frontend calls.

#1758637

My issue is resolved now. Thank you!