Tricky excerpt from posts beginning by a shortcode
-
Hello.
I’m a satisfied, yet minimal, user of your five stars plugin.
A little problem – that I solved tweaking template 3 PHP code – comes out when a recent or more posts start with a shortcome (like mines do).
Abstract or snippet text includes an uninterpreted snipped code (e.g. [something data=””], resulting in a tricky output.I changed a couple of lines in template-3.php (I use design-3) as follows:
Line 37: $customExcerpt = strip_shortcodes(strip_tags(get_the_excerpt()));
Line 43: $excerpt = strip_shortcodes(strip_tags(get_the_content()));Could be useful to include above changes in incoming releases of your nice plugin?
Thanks a lot for reading my considerations.
The page I need help with: [log in to see the link]
The topic ‘Tricky excerpt from posts beginning by a shortcode’ is closed to new replies.