• Resolved mjdigital

    (@mjdigital)


    Hi, I have set the widget to use the post excerpt and we craft our own excerpts directly rather than taking the content, but as your plugin uses the exceprt content directly from the post object and does not apply the the_excerpt filter to it we cannot add the extra processing needed to these excerpts.

    In recent-posts-widget-with-thumbnails.php on line 1683 you have:

    
    if ( ! $this->customs[ 'ignore_excerpt' ] ) {
    	$excerpt = $post->post_excerpt;
    }
    

    If you changed this to

    
    if ( ! $this->customs[ 'ignore_excerpt' ] ) {
    	$excerpt = get_the_excerpt( $post->ID );
    }
    

    Then the filtering should persist.

    If you could make this small change it would really help us out. Thanks

    Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Thank you for that notice. I rather would set

    if ( ! $this->customs[ 'ignore_excerpt' ] ) {
        $excerpt = apply_filters( 'get_the_excerpt', $post->post_excerpt, $post );
    }

    Would this be useful for you?

    Thread Starter mjdigital

    (@mjdigital)

    Yep, great that would do nicely.

    If you’re also feeling like it adding the ability to be able to force the excerpt length on hand written excerpts would also be helpful but I appreciate if you’re hand writing excerpts you should write only what it needed (but try telling that to my clients!).

    Thanks.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    I did not integrate a shortening function for manual excerpts since these excerpts can contain HTML code. A shortener would cut the text something between an opening tag and its corresponding closing tag. This leads to invalid HTML code and heavy design errors.

    For shortening the excerpt you will be able to use the hook. I will implement it soon.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    I just tested the new code. Since the hook get_the_excerpt yields changes of the excerpt I will introduce a new hook rpwwt_the_excerpt instead. That way your functions for the excerpts can be easily targeted to the RPWWT list only.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    With the new version 6.1 you can filter the manual excerpt via rpwwt_the_excerpt.

    If you like the plugin I would be glad about your review.

    Thread Starter mjdigital

    (@mjdigital)

    Hi, sorry for the late response – been a bit snowed under (literally and metaphorically).
    Thanks for looking into this in such detail, it is most appreciated.

    I do very much like the plugin and so have left a glowing review.

    Keep up the good work ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Excerpt not filtered’ is closed to new replies.