Support » Plugin: Storefront Blog Excerpts » Filter the_excerpt not applied

  • Resolved Piotr Boguslawski

    (@piotr-boguslawski)


    IMO should 😉

    I fixed it locally so as:

    Original:

    ...
    $content = ( has_excerpt( get_the_ID() ) ) ? get_the_excerpt() : get_the_content();
    ?>
    <p><?php echo wp_trim_words( $content, get_theme_mod( 'woa_sf_blog_excerpt_word_count', 55 ), get_theme_mod( 'woa_sf_blog_excerpt_end', '…' ) ); ?></p>
    ...

    New:

    ...
    $content = do_shortcode( ( has_excerpt( get_the_ID() ) ) ? get_the_excerpt() : get_the_content() );
    $content = wp_trim_words( $content, get_theme_mod( 'woa_sf_blog_excerpt_word_count', 55 ), get_theme_mod( 'woa_sf_blog_excerpt_end', '…' ) );
    $content = apply_filters('the_excerpt', $content);
    ?>
    <p><?php echo $content ?></p>
    ...

    Now is perfect 🙂

    https://wordpress.org/plugins/storefront-blog-excerpt/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter the_excerpt not applied’ is closed to new replies.