Allowing shortcodes in WordPress category pages

To allow shortcodes in your WordPress category pages, just go into your active theme’s function.php and add:

add_filter( 'term_description', 'shortcode_unautop');
add_filter( 'term_description', 'do_shortcode' );


Comments

Leave a Reply

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