Title: Request: process shortcodes in the automatic excerpt
Last modified: December 31, 2017

---

# Request: process shortcodes in the automatic excerpt

 *  Resolved [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/)
 * I love this plugin and it does exactly what it promises and more. I do have a
   request for the summary settings though.
 * The summary settings are great, in that it allows me to choose to increase the
   number of Words that are added to the automatic excerpt from 55 to 200.
 * My challenge is that WordPress [removes all shortcodes](https://developer.wordpress.org/reference/functions/the_excerpt/)
   from the automatic excerpt. Since I use a page builder (Divi), the full post 
   text is wrapped inside a shortcode, causing the automatic excerpt to be empty.
 * It would be awesome if this plugin would have a setting to get around that. Something
   simple like a tickbox that says ‘Process shortcodes in automatic excerpt’. Or
   alternatively, have an option to use the full text feed (which does keep/process
   shortcodes) and trim that feed down to the number of words set in the ‘Excerpt
   Length’ setting.
 * Thanks
    JP
 * PS: the provided feed url contains manually created excerpts, but I don’t want
   to add manual excerpts (that’s duplicate work).
    -  This topic was modified 8 years, 4 months ago by [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/).
    -  This topic was modified 8 years, 4 months ago by [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frequest-process-shortcodes-in-the-automatic-excerpt%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Robin Cornett](https://wordpress.org/support/users/littlerchicken/)
 * (@littlerchicken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9831612)
 * That’s an interesting one. I haven’t used Divi, so am not familiar with what 
   it does with the shortcodes. Although the plugin doesn’t use the WordPress generated
   excerpt, it does copy most of its functionality, including, as you’ve found, 
   stripping out the shortcodes. I think it would be possible to use a filter to
   use the plugin excerpt without losing the shortcode, but it would mean basically
   rewriting the plugin code. That’s possible, but not without some adjustments 
   to the plugin code.
 * I’m not sure about adding a setting, but it should be relatively simple to add
   a one line filter you could use to prevent the plugin from stripping out the 
   shortcodes. If I can add that in, would you be able to test it and see if it 
   meets your needs? Then I could add that into the next version.
 *  Thread Starter [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9832622)
 * Awesome! Sure I can test that.
 * Thank you so much!
    JP
 *  Plugin Author [Robin Cornett](https://wordpress.org/support/users/littlerchicken/)
 * (@littlerchicken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9844268)
 * No idea how this will work with Divi, but it seems to be working locally with
   Better Font Awesome (adding an icon at the beginning of the text via shortcode).
 * If you want to test it, you can try replacing the excerpt fixer file (in the 
   plugin/includes directory) with [this version](https://github.com/robincornett/send-images-rss/blob/develop/includes/class-sendimagesrss-excerpt-fixer.php).
 * To keep shortcodes in the processed excerpt content, use this filter:
 *     ```
       add_filter( 'sendimagesrss_keep_shortcodes', '__return_true' );
       ```
   
 * You can add it to your theme’s functions.php file or wherever you keep similar
   code. If you have a staging or local site where you can test this, that would
   be a lot better than testing on a live site. Please make sure your site is backed
   up and practice safe coding, etc. At this point, this is the only changed file
   between the current release and what’s on Github (the other change is for the
   [filter on the permalinks](https://wordpress.org/support/topic/request-analytics-tracking-codes-on-the-read-more-link-and-image-url/)).
 * Once you’ve changed out the file, the feed may still not show the updates until
   a new post is published, depending on caching.
 *  Thread Starter [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9846930)
 * Woehoew that works With that file version from github AND the filter in functions.
   php.
    [http://divi.xenonis.nl/feed/](http://divi.xenonis.nl/feed/)
 * Will that filter become a checkbox in the plugin settings?
 * Looking forward to the update.
 * Thank you so much!
 * JP
 *  Plugin Author [Robin Cornett](https://wordpress.org/support/users/littlerchicken/)
 * (@littlerchicken)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9847347)
 * Great, thank you for letting me know! I’m not currently planning on adding it
   as a setting, but the filter is fine with me. Depending on feedback, I sometimes
   will implement a filter as a setting to make it easier to access.
 *  Thread Starter [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * (@jpnl)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9850009)
 * That’s fine, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Request: process shortcodes in the automatic excerpt’ is closed to new
replies.

 * ![](https://ps.w.org/send-images-rss/assets/icon-256x256.jpg?rev=976563)
 * [Send Images to RSS](https://wordpress.org/plugins/send-images-rss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/send-images-rss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/send-images-rss/)
 * [Active Topics](https://wordpress.org/support/plugin/send-images-rss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/send-images-rss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/send-images-rss/reviews/)

## Tags

 * [excerpt](https://wordpress.org/support/topic-tag/excerpt/)
 * [rss-feed](https://wordpress.org/support/topic-tag/rss-feed/)

 * 6 replies
 * 2 participants
 * Last reply from: [John-Pierre Cornelissen](https://wordpress.org/support/users/jpnl/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/request-process-shortcodes-in-the-automatic-excerpt/#post-9850009)
 * Status: resolved