Saltar navegación

[Resuelto] html in description field for custom fields in WP admin?

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 4 años, 1 mes. 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: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Simon hace 4 años, 1 mes.

Asistido por: Luo Yang.

Autor
Mensajes
#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>enlace oculto</u></em>">google</a>
<img src="<em><u>enlace oculto</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!