using shortcode in excerpt (4 posts)

  1. mingya
    Posted 5 years ago #

    Anyone knows how to use shortcode in excerpt?

    I tried adding filter as follow, but doesn't work.

    add_filter( 'the_excerpt', 'shortcode_unautop');
    add_filter( 'the_excerpt', 'do_shortcode');
  2. ssdesign
    Posted 5 years ago #

    same problem. Does not work for me either, I am using 3.1.1

  3. http://wordpress.org/support/topic/wordpress-30-adding-shortcodes-to-excerpts

    Make sure your theme is using the_excerpt and not get_the_excerpt :)

  4. roibot
    Posted 4 years ago #

    Same issue, WordPress 3.3.1

    Childtheme of 'toolbox'

    Call is the_excerpt();

    In functions.php add_filter('the_excerpt', 'do_shortcode');

    I have tested by switching to the_content, and that is fine, so something is not happening with the_excerpt. Did you get resolution?

Topic Closed

This topic has been closed to new replies.

About this Topic