Support » Plugin: W4 Post List » Shortcode showing in excerpt

  • The WordPress shortcode for captions is showing in excerpts:

    [caption id="" ]Caption Text[/caption]

    Looking through the support tab, it appears that this was an issue that was previously fixed a year or so ago but appears to be happening again.

    This is a great plugin and I’d be more than glad to support a premium version for more regular updates.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Workaround working here

    go to w4-post-list/inc/helper-posts.php

    The IF in line 459 should end with a glue strip_shortcodes funcion:

    if( isset($attr[‘wordlimit’]) ){
    $wordlimit = (int) $attr[‘wordlimit’];
    $excerpt = wp_trim_words( $excerpt , $wordlimit );
    $excerpt = strip_shortcodes( $excerpt );
    }

    Thanks. Adding that line of code worked like a charm.

    $excerpt = strip_shortcodes( $excerpt );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode showing in excerpt’ is closed to new replies.