WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 3.0: adding shortcodes to excerpts (2 posts)

  1. nrutman
    Member
    Posted 3 years ago #

    Hello,

    I'm trying to execute shortcodes on the excerpt display. I am adding the filter to execute shortcodes both on text widgets and the excerpt, via:

    add_filter('widget_text', 'do_shortcode');
    add_filter('the_excerpt', 'do_shortcode');

    So here's the weird thing: shortcodes work great in the text widget, but not in the excerpt. Did this change in WordPress 3.0? (technically I'm running 3.0.1)

  2. nrutman
    Member
    Posted 3 years ago #

    Found the problem. I was using get_the_excerpt() instead of the_excerpt(). When I added an additional filter for get_the_excerpt, it worked great.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic