Navigation überspringen

[Gelöst] html in description field for custom fields in WP admin?

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

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 vor 4 Jahren, 1 Monat. 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)

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

Zuletzt aktualisiert von Simon vor 4 Jahren, 1 Monat.

Assistiert von: Luo Yang.

Author
Artikel
#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>versteckter Link</u></em>">google</a>
<img src="<em><u>versteckter Link</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!