Allow Shortcodes in Category Descriptions

Adding functionality to your WordPress theme is a breeze! Simply insert the necessary code into your theme’s functions.php file, and you’re all set to enhance your website’s capabilities. Whether you’re looking to add custom features or fine-tune existing ones, this file is your go-to resource for making your theme work exactly how you want it to. So, let’s dive in and start tweaking!

This is an easy one, all you need to do is to add the following code to your themes function.php file.

You will find that for example mine is
/home/marknhewitt.co.uk/public_html/wp-content/themes/blocksy-child/function.php

Your may be different.

add_filter ('term_description', 'do_shortcode');

Then add your shortcodes to the Category Description. Nice and Simple 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *


×