• I have ben using the plugin for a while and I was able to configure it exactly to my needs (allowing all sorts of html tags, shortcodes and limiting word count).

    Today I ran into a problem…

    I have a couple of thousand posts in my site and now I will need to have some showing the automatic excerpt created by your plugin but I need a big percentage of them to use a custom (manual) excerpt (because I need the search results to show custom content other than the actual content of the page).

    When I use my custom excerpt none of the shortcodes run, they just show as text. Html formatting appears to pass to the excerpt fine.

    I tried adding to my functions.php:
    add_filter(‘the_excerpt’, ‘shortcode_unautop’);
    add_filter(‘the_excerpt’, ‘do_shortcode’);
    add_filter(‘get_the_excerpt’, ‘shortcode_unautop’);
    add_filter(‘get_the_excerpt’, ‘do_shortcode’);

    And the result is if I disable your plugin I get my custom /manual excerpts to behave the way I need (running 3 shortcodes I use in them) but then all the other automatic ones are just the featured image. If I re-enable your plugin the auto excerpts generated from content are fine but the manuals are showing the shortcode text.

    Any ideas?

    Thanks in advance.

    The settings I have on your plugin are:

    Excerpt length :100 words
    Ellipsis: (default)
    Finish: sentence
    Read More Link: checked Add read more link
    Filter: The_excerpt, The_content
    Strip Tags: Don’t remove any tags

    As to the link of my site I prefer to disclose that privately (I do not like to publicize what I am doing it is a big business site).

    • This topic was modified 4 years, 6 months ago by jorgonfla.
    • This topic was modified 4 years, 6 months ago by jorgonfla.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jorgonfla

    (@jorgonfla)

    Exploring more I am finding the problem presents when using a plugin named “Ajax Load More” and only in the results generated by queries through that plugin. Regular searches do not have a problem with the shortcodes in the manual excerpts.

    I am posting that here because I will research more and post the solution in case other people have similar problems in the future.

    Hopefully I can find a solution soon.

    • This reply was modified 4 years, 6 months ago by jorgonfla.
    Plugin Author WPKube

    (@wpkube)

    Hi @jorgonfla

    In the “Repeater Template” (WP admin > Ajax Load More > Repeater Templates) instead of the_excerpt(); add the_advanced_excerpt();

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

The topic ‘Manual excerpt does not run shortcodes when using your plugin’ is closed to new replies.