Shortcodes not interpreted in excerpts
-
Hello,
I am using your plugin and I’m very happy with it, thank you.
I encountered a problem, which is your plugin does not parse shortcodes when rendering excerpts. This might not be a problem for most people, but in my case I use a shortcode to display a custom/dynamic text value at the very beginning of certain posts/products.
I modified line 59 of includes/template/elements/class-excerpt.php in your plugin directory. In the public function render, instead of this:
$output = wp_kses_post( $output );
I wrote this:
$output = wp_kses_post( do_shortcode($output) );
I have had to disable your plugin updates so my modification isn’t overwritten; however I would really like to keep updating your plugin.
Do you mind making this small alteration in your own code, please?
Thank you and kind regards
The page I need help with: [log in to see the link]
- The topic ‘Shortcodes not interpreted in excerpts’ is closed to new replies.