Skip Navigation

[Résolu] html in description field for custom fields in WP admin?

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

Problem:

I want to add an helper image for a custom field description in WP admin.

Solution:

You can save HTML codes into field description option directly, for example:

https://toolset.com/forums/topic/html-in-description-field-for-custom-fields-in-wp-admin/#post-1875443

Relevant Documentation:

This support ticket is created Il y a 3 années et 11 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.

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: Asia/Hong_Kong (GMT+08:00)

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

Dernière mise à jour par Simon Il y a 3 années et 11 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1875397

I want to add an helper image for a custom field description in WP admin.
I guess that all html tags and attributes are removed before inserting in database due to security.
Is it possible to change this to allow html in description fields in WP-admin?

#1875443
field-desciption.JPG

Hello,

I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins, I can save HTML codes into field description option without any problem, for example:

<a href="<em><u>lien caché</u></em>">google</a>
<img src="<em><u>lien caché</u></em>" />

see my screenshot field-desciption.JPG

Please provide detail steps to reproduce the same problem, thanks

#1875487

My issue is resolved now. Thank you!