sandywp / plugins / allow-html-in-category-descriptions

Allow HTML in Category Descriptions

5.0 out of 5 stars. 5.0 41 reviews

This plugin allows you to use unfiltered HTML in your category descriptions by disabling selected WordPress filters.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.2.5 8,000+ installs WP 2.5+ PHP 7.0+

your-sandbox.sandywp.com/wp-admin
Allow HTML in Category Descriptions running inside a SandyWP sandbox

What you get inside

3 screens
  • Adding HTML code to the category description

  • 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 (here shown with the Twenty Fourteen theme)

About this plugin

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.

Questions

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: [email protected]
  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

5.0

41 reviews

  • 5 ★ 41
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.