• I have ALM working very nicely, however… I have place shortcode for widgets (do_widgets) in the except box on some posts and I need it to render in place of plain text.

    I’ve tried all the do_shortcode tricks I have come across, but no joy with ALM rendering. I would greatly appreciate any insight! Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @cathyka,

    I have place shortcode for widgets (do_widgets) in the except box on some posts and I need it to render in place of plain text.

    I don’t think you can do that with excerpts as the_exceprt() function is renders plain text. Are you doing this elsewhere?

    Let me know.

    Thread Starter cathyka

    (@cathyka)

    (current versions of genisis and wordpress)
    Shortcode is working in search results with excerpts. the_excerpt( $content )

    Functions has
    add_filter( ‘widget_text’, ‘shortcode_unautop’ );
    add_filter( ‘widget_text’, ‘do_shortcode’ );
    add_filter( ‘the_excerpt’, ‘shortcode_unautop’);
    add_filter( ‘the_excerpt’, ‘do_shortcode’);

    Tried so many variations in the repeater with no joy….
    if (has_excerpt() ) {
    $shortcode = the_excerpt( $content );
    echo do_shortcode($shortcode);
    } else genesis_do_post_title();

    Still love ALM… its making my site beautiful… just wish I could get this one last thing to work.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode in excerpts not redendering.’ is closed to new replies.