Support » Plugins » WordPress 3.0: adding shortcodes to excerpts

  • 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)

Viewing 1 replies (of 1 total)
  • 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.


Viewing 1 replies (of 1 total)
  • The topic ‘WordPress 3.0: adding shortcodes to excerpts’ is closed to new replies.