executing shortcodes through get_the_excerpt();
-
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();
But
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:
- stop
the_excerpt();
from insertingp
tags, or - make
get_the_excerpt();
execute a shortcode
I would be very much obliged.
J
- stop
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘executing shortcodes through get_the_excerpt();’ is closed to new replies.