Plugin interferes with the_excerpt
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin interferes with the_excerpt’ is closed to new replies.