Hi, thanks for reading.
I’m trying to execute a shortcode which exists in an excerpt on a site I’m working on.
This works fine automatically using
the_excerpt();inserts an unnecessary
<p>, which I do not want.
So I’ve been using
echo (get_the_excerpt();, which is fine except that it doesn’t execute the shortcode.
I’ve played around with some filters and the
do_shortcode($blah)stuff, all to zero effect.
So if anybody could help me either:
get_the_excerpt();execute a shortcode
I would be very much obliged.
- The topic ‘executing shortcodes through get_the_excerpt();’ is closed to new replies.