Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    @microbe You can add this to your active theme’s functions.php so that shortcodes and oembeds will be processed:

    add_action( 'genesis_meta', 'custom_filter_archive_intro_text' );
    function custom_filter_archive_intro_text() {
    	global $wp_embed;
    	add_filter( 'genesis_term_intro_text_output', array( $wp_embed, 'autoembed' ) );
    	add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );
    }
    Thread Starter Easton Bavents

    (@microbe)

    Thanks Nick. That looks like it ought to work… but it is not working for me, I have tested the shortcode in a page and it works fine there. Any thoughts?

    Plugin Contributor Nick C

    (@modernnerd)

    @microbe If this is for the /portfolio/ page itself (rather than one of the /portfolio-type/ pages), you can try this instead of the above code:

    add_action( 'genesis_meta', 'custom_filter_archive_intro_text' );
    function custom_filter_archive_intro_text() {
    	global $wp_embed;
    	add_filter( 'genesis_term_intro_text_output', array( $wp_embed, 'autoembed' ) );
    	add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );
    	add_filter( 'genesis_cpt_archive_intro_text_output', array( $wp_embed, 'autoembed' ) );
    	add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode' );
    }
    Thread Starter Easton Bavents

    (@microbe)

    That is great, worked a treat. Thanks very much for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Archive Intro’ is closed to new replies.