• Resolved hotbelgo

    (@hotbelgo)


    Love the plugin – see https://www.asyluminfo.be/en/arriving/

    I’m now trying to add search, with snippets for each result. My first efforts resulted in most results having no snippet. That changed when I deactivated. But then I was left with the [accordion….] stuff showing.

    That was fixed with a filter

    function remove_accordion_from_excerpt( $excerpt ) {
    return preg_replace (‘/\[[^\]]*\]/’, ‘$1’, $excerpt);
    }
    add_filter( ‘the_excerpt’, ‘remove_accordion_from_excerpt’ );

    But when I turned the plugin back on, no snippets were created for any page with an accordion tag.

    Can you advise?

Viewing 1 replies (of 1 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    This seems to be a common issue with all shortcodes. I haven’t found a good solution beyond setting an explicit excerpt for the page.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin interferes with the_excerpt’ is closed to new replies.