0

I want to use a shortcode for a table in a category description. It's my understanding that WP does not support this. I searched google and found some codes that i needed to add to the functions.php. But it's not working for me. What should I do?

Site/page: http://www.masflamenco.nl/category/flamencoles-utrecht/

1

1 Answer 1

3

adding those codes into functions.php (tested in a child theme of Twenty Sixteen) seems to work:

add_filter( 'term_description', 'shortcode_unautop' );
add_filter( 'term_description', 'do_shortcode' );
remove_filter( 'pre_term_description', 'wp_filter_kses' );
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.