HTML code usage in listing category description (SEO)

Hello, I have a problem with HTML usage in listing category description. I would like to write a SEO text in category description but I cant use HTML (<h2>,<h3>, etc.).

Unfortunately, there is no such possibility yet - by default, WordPress strips HTML from category descriptions. If you’re familiar with basic theme customizations please try overriding the category header via a child theme.

I found a solution for this problem. Just add this code to themes functions.php

// Remove HTML filter in categories
remove_filter('pre_term_description', 'wp_filter_kses');
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.