I have a popular problem: shortcodes are not work in excerpts. I tried to add this code to functions.php, but it changed nothing:
add_filter('the_excerpt', 'do_shortcode'); add_filter('widget_text', 'do_shortcode');
Could anybody help me, please?
Are you using the advanced layout editor for your posts? If so then you’ll need to add the shortcodes to the “Excerpt” field when editing your post. If you do not see the excerpt field then click on “Screen Options” in the top right hand corner and check it to display.
If your using a different element then send us a link to your page so we can get a better idea.
For add excerpts I use excerpt field. Problem with shortcodes, which I type to this field —it’s not converted to text on the site.
Here’s how it looks in the admin panel:
And this is how it looks on the website:
You must be logged in to reply to this topic.