Flowplayer shortcode in excerpts
-
I understand that this isn’t strictly a flowplayer issue but I have been trying to find a solution for about 3 days now to no avail.
The issue is the flowplayer shortcode and automatic excerpts. I can’t seem to be able to strip the shortcode out of the excerpt. Here is the code for the excerpt:
<?php if($post->post_excerpt){ the_excerpt(); }else{ if ( has_post_format( 'quote' )) { echo '<blockquote>'.van_truncate(strip_tags(get_the_content()),200).'</blockquote>'; }else{ echo van_truncate(strip_tags(get_the_content()),200); } } ?>
I’ve tried to replace:
the_excerpt();
with:
echo do_shortcode(get_the_excerpt());
and even:
echo do_shortcode(the_excerpt());
But nothing seems to be working and the flowplayer shortcode is still displayed in the excerpt.
Any help or suggestions would be greatly appreciated.
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Flowplayer shortcode in excerpts’ is closed to new replies.