We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP Shortcode not working in Category Descriptions Reply To: WPSP Shortcode not working in Category Descriptions

#3977
surfing
Participant

I put the code into the Snippets plugin and Lightweight Grids Columns and WP Show Posts shortcodes now work in category descriptions. Is this code stable? I mean the post from stackexchange is nearly two years old. Will I have to check on this each time a new WordPress update is released? Here is the code I inserted:

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

What does remove_filter… do? I commented out that line and it still seems to work out.