• Hello there.

    We’re wanting wpautop support on excerpt output. In your lcp-catlist.php file, under the lcp_trim_excerpt() function there at line 380 there is this code:

    $text = apply_filters('the_excerpt', $text);

    And I want to use this code:

    add_filter('the_excerpt','my_the_excerpt');
    function my_the_excerpt($text) {
      return wpautop($text);
    }

    However, this does not work. Instead I ended up adding a custom filter right before lcp_trim_excerpt() returns $text (on line 394).

    So my code now looks like:

    $text = apply_filters('lcp_the_excerp_custom',$text);
    return $text;

    And when I link my filter then it works fine.

    Is there any way you could add a filter where I added one, in your next update? I will then rename my add_filter call to match your apply_filter call.

    It would be greatly appreciated.

    Thank you kindly,
    Brian

    https://ww.wp.xz.cn/plugins/list-category-posts/

The topic ‘wpautop support?’ is closed to new replies.