I am developing a plugin that uses shortcodes. I wanted to enable users to use shortcodes in excerpts, so I added the line
add_filter('the_excerpt', 'do_shortcode');
which worked fine.However, in my RSS feed, the excerpt is still a shortcode. I tried all of the following:
add_filter('get_the_excerpt', 'do_shortcode');
add_filter('the_excerpt_rss', 'do_shortcode');
add_filter('the_content_rss', 'do_shortcode');
But it does not work still. Can someone point me to the right filter so the excerpt would be processed correctly in the feed as well?
Please note that those are manually edited excerpts, not automatically generated ones.
add_filter('the_excerpt_rss', 'do_shortcode');
should work fine because I just tried and it did. I think there is some issue in your shortcode handler function. So please update your question to include that code. If possible please share the link of site where you are testing this plugin to see the/feed
it in action.