Relevanssi Short Code Malfunction
-
Relevanssi has an option to “Expand shortcodes in post content”. I have that option UN-checked.
A page of my site contains both a short code (which expands to include buttons) and ordinary text. When I search for any word that appears within the text of that page, Relevanssi returns search results that include that page (as intended). But those buttons from the short code appear as well. In fact, they float up to the top of the screen and completely break my CSS.
Ideally Relevanssi would ignore that short code and not return any buttons – just text.
In addition to un-checking the “Expand shortcodes” option and saving those settings, I also added this to my functions.php file:
function lets_strip_shortcodes( $excerpt ) {
return strip_shortcodes( $excerpt );
}add_filter(‘relevanssi_excerpt_content’, ‘lets_strip_shortcodes’);
However, that code has produced no effect. Relevanssi continues to return results with the expanded short code, producing buttons that break the design of my search results page.
Any ideas?
The topic ‘Relevanssi Short Code Malfunction’ is closed to new replies.