Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Image Captions in Excerpts – Revisitied!

$
0
0

So image captions are showing up in wpv-post-excerpt.

There is a fix for this! In Views 1.5.3 I added on line 788 the following:

$excerpt = preg_replace('#([[]caption)(.*)([[]/caption[]])#e', '', $excerpt);

Thus it reads (around it so others can follow where it goes):

$excerpt = str_replace(']]>', ']]>', $excerpt);
$excerpt = preg_replace('#([[]caption)(.*)([[]/caption[]])#e', '', $excerpt);
if ($length > 0) {

BUT – earlier versions of views had it on a different line. Each upgrade I need to track this and it's a pain.

REQUEST:
Can we PLEASE have this permanently fixed or at least an option in the shortcode in the next release?

THANKS!


Viewing all articles
Browse latest Browse all 20145

Trending Articles