Making Shortcode Work In “Custom HTML Block”?

Want to force shortcode to work in a Custom HTML Block?

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

This code will do it!

Filed under: WordPressTagged with: , ,

No comment yet, add your voice below!

Add a Comment

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

Comment *
Name *
Email *