Add shortcodes anywhere & everywhere!
add_action( 'init', 'shortcodes_anywhere' );
/**
* Run shortcodes and enable autoembed at Genesis archive intro text.
*/
function shortcodes_anywhere(){
/** Global $wp_embed */
global $wp_embed;
add_filter('widget_text', 'do_shortcode');
/** Taxonomy Intros */
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );
add_filter( 'genesis_term_intro_text_output', array( $wp_embed, 'run_shortcode'), 8 );
add_filter( 'genesis_term_intro_text_output', array( $wp_embed, 'autoembed'), 8 );
/** Archive Intro Text */
add_filter( 'genesis_author_intro_text_output', 'do_shortcode' );
add_filter( 'genesis_author_intro_text_output', array( $wp_embed, 'run_shortcode'), 8 );
add_filter( 'genesis_author_intro_text_output', array( $wp_embed, 'autoembed'), 8 );
/** Post Type Archive Intro Text */
add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode' );
add_filter( 'genesis_cpt_archive_intro_text_output', array( $wp_embed, 'run_shortcode'), 8 );
add_filter( 'genesis_cpt_archive_intro_text_output', array( $wp_embed, 'autoembed'), 8 );
}