• 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 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).

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    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.

    Awesome! Sure I can test that.

    Thank you so much!
    JP

    Plugin Author Robin Cornett

    (@littlerchicken)

    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.

    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).

    Once you’ve changed out the file, the feed may still not show the updates until a new post is published, depending on caching.

    Woehoew that works With that file version from github AND the filter in functions.php.
    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

    (@littlerchicken)

    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.

    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.