• Hi, just wanted to add a remark regarding the [post_excerpt] handling:

    Currently the W4PL_Helper_Posts::post_excerpt() method contains this part:

    $excerpt = wp_trim_words( wp_strip_all_tags($excerpt), $wordlimit );

    But wp_strip_all_tags() is already within wp_trim_words() but it’s missing the strip_shortcodes().

    So my suggestion is to use this part instead:

    $excerpt = wp_trim_words( strip_shortcodes( $excerpt ), $wordlimit );

    Thanks.

    https://wordpress.org/plugins/w4-post-list/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strip shortcodes from [post_excerpt] and [excerpt]’ is closed to new replies.