Manual excerpt does not run shortcodes when using your plugin
-
I have ben using the plugin for a while and I was able to configure it exactly to my needs (allowing all sorts of html tags, shortcodes and limiting word count).
Today I ran into a problem…
I have a couple of thousand posts in my site and now I will need to have some showing the automatic excerpt created by your plugin but I need a big percentage of them to use a custom (manual) excerpt (because I need the search results to show custom content other than the actual content of the page).
When I use my custom excerpt none of the shortcodes run, they just show as text. Html formatting appears to pass to the excerpt fine.
I tried adding to my functions.php:
add_filter(‘the_excerpt’, ‘shortcode_unautop’);
add_filter(‘the_excerpt’, ‘do_shortcode’);
add_filter(‘get_the_excerpt’, ‘shortcode_unautop’);
add_filter(‘get_the_excerpt’, ‘do_shortcode’);And the result is if I disable your plugin I get my custom /manual excerpts to behave the way I need (running 3 shortcodes I use in them) but then all the other automatic ones are just the featured image. If I re-enable your plugin the auto excerpts generated from content are fine but the manuals are showing the shortcode text.
Any ideas?
Thanks in advance.
The settings I have on your plugin are:
Excerpt length :100 words
Ellipsis: (default)
Finish: sentence
Read More Link: checked Add read more link
Filter: The_excerpt, The_content
Strip Tags: Don’t remove any tagsAs to the link of my site I prefer to disclose that privately (I do not like to publicize what I am doing it is a big business site).
The topic ‘Manual excerpt does not run shortcodes when using your plugin’ is closed to new replies.