Title: Excerpt not filtered
Last modified: February 23, 2018

---

# Excerpt not filtered

 *  Resolved [mjdigital](https://wordpress.org/support/users/mjdigital/)
 * (@mjdigital)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/)
 * 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 Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10007662)
 * 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](https://wordpress.org/support/users/mjdigital/)
 * (@mjdigital)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10007671)
 * 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 Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10008775)
 * 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 Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10008816)
 * 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 Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10013724)
 * 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](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/reviews/).
 *  Thread Starter [mjdigital](https://wordpress.org/support/users/mjdigital/)
 * (@mjdigital)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10014596)
 * 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.

 * ![](https://ps.w.org/recent-posts-widget-with-thumbnails/assets/icon-256x256.
   png?rev=2478511)
 * [Recent Posts Widget With Thumbnails](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-with-thumbnails/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [mjdigital](https://wordpress.org/support/users/mjdigital/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/excerpt-not-filtered/#post-10014596)
 * Status: resolved