Support » Plugin: Genesis Portfolio Pro » Archive Intro

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

    (@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' );
    }

    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 Cernis

    (@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' );
    }

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

    • This reply was modified 3 months, 4 weeks ago by  microbe.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.