Allow HTML in Category Descriptions
Arno EsterhuizenWhen 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.
- For security reasons, the role that you’re using to edit the description needs to have the “unfiltered_html” capability
- In single site installations, Administrators and Editors has this capability by default; in a multisite installation, only Super Admins have this capability
- Refer to WordPress Roles and Capabilities
- For the HTML to show up on your website, the theme you’re using needs to output the category description
- Contact your theme developer and refer them to WordPress Developer Documentation – category_description
- Email Address: [email protected]
- Subject Line: Question: WordPress Plugin: Allow HTML in Category Descriptions
- Donations: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SGS5KSM9N4D3Y
Work well with Wordpress 6
By Nicolas Reznikoff (reznikoffnicolas) on September 21, 2022
Simple et efficace
By dmsr on July 22, 2022
Also works for WooCommerce product categories
By billcv on May 7, 2022
Perfekt!
By Jan (zwerg277) on February 14, 2021
EXACTLY what I want
By iainlaird on July 6, 2020
Simple, straightforward
By twoforksandapassport on July 1, 2020
This is a great plugin!
By murgi on June 6, 2020
Great Plugin
By Akhtarujjaman Shuvo (mdshuvo) on November 5, 2019
Very Good
By satyajitghosh on October 14, 2019
Extremely Useful!
By JustBruno on December 21, 2017
1.2.4
- Update tested wordpress versions to 6.4.3
1.2.3
- Change the plugin initialisation after the previous security update went out in a bit of a rush.
1.2.2
- Address a security vulnerability
1.2.1.1
- Add a text domain for translation purposes
1.2.1
- Minor formatting of the plugin code, syntax, etc.
- Added a banner image for the plugin page
1.2
- A version bump to indicate to WordPress that the plugin was reviewed and tested in the latest version of WordPress
- Made sure that the pre_filters array had corresponding items in the filters array
- Added a donation link
1.1
- Added a filter array for the textareas admin displays
1.0
- First release into the wild after helping someone on a forum post
- Upload
html-in-category-descriptions.php
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- 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)
- 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)
Reviews
5 out of 5 stars
- Version: 1.2.4
- Last updated: 6 months ago
- Active installations: 10K
- WordPress version: 2.5
- Tested up to: 6.4.5
- PHP version: 7.0