Linux 软件免费装
Banner图

Allow HTML in Category Descriptions

开发者 arno.esterhuizen
Timmmy
更新时间 2024年3月17日 07:19
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.4.3
版权: GPLv2 or later
版权网址: 版权信息

标签

html categories filter category descriptions

下载

1.2.3 1.2.2 1.2.4

详情介绍:

When you add text to the category description textarea and save the category, WordPress runs content filters that strips out all but the most basic formatting tags. This plugin disables those filters for roles with the necessary permissions. Any html code you add to the category description will not be stripped out. This plugin does not do anything other than disable the filters. It does not protect you from entering invalid HTML, nor does it help you create WYSIWYG HTML. You can use the post or page composing screen to help you create the text and formatting. Switch to the 'code' tab and copy the HTML code into the category description field.

安装:

  1. Upload html-in-category-descriptions.php to the /wp-content/plugins/ directory
  2. 通过 WordPress 的“插件”菜单激活插件
  3. Paste or type HTML code in the category description and save (Refer to "The category description isn't saving. Why?" in the FAQ if you're having problems saving)
  4. Enjoy HTML in your category descriptions (Refer to "I see the HTML in the admin panel preview, but not on my website. Why?" in the FAQ if the HTML isn't appearing on your website)

屏幕截图:

  • A preview of the category description in the category list admin screen
  • What the category looks like on the front-end if your theme supports it

升级注意事项:

1.2.1 Upgraded plugin for the latest versions of WordPress. 1.2 Upgraded plugin for the latest versions of WordPress. 1.1 Added code to prevent HTML from being stripped in textareas in the admin display. == Upgrade Notice == 1.2.2 This version fixes a minor security related bug. Upgrade immediately.

常见问题:

The category description isn't saving. Why?

  1. For security reasons, the role that you're using to edit the description needs to have the "unfiltered_html" capability
  2. In single site installations, Administrators and Editors has this capability by default; in a multisite installation, only Super Admins have this capability
  3. Refer to WordPress Roles and Capabilities

I see the HTML in the admin panel preview, but not on my website. Why?

  1. For the HTML to show up on your website, the theme you're using needs to output the category description
  2. Contact your theme developer and refer them to WordPress Developer Documentation - category_description

How do I contact you?

  1. Email Address: arno.esterhuizen+wordpress-plugins@gmail.com
  2. Subject Line: Question: WordPress Plugin: Allow HTML in Category Descriptions
  3. Donations: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SGS5KSM9N4D3Y

更新日志:

1.2.4 1.2.3 1.2.2 1.2.1.1 1.2.1 1.2 1.1 1.0