ThemeCo
ThemeCo themes use custom codes for dynamic content. Those are not usual shortcodes, and Relevanssi won’t expand them automatically.
In order to expand the dynamic content from ThemeCo themes, you need to use these filters:
add_filter( 'relevanssi_post_content', 'relevanssi_filter_the_content', 8, 2 ); add_filter( 'relevanssi_pre_excerpt__content', 'relevanssi_filter_the_content', 8, 2 ); function relevanssi_filter_the_content( $post_content, $post ) { return apply_filters( 'the_content', $post_content ); }
The critical part is running these filters on an early enough priority for relevanssi_post_content
: Relevanssi page builder shortcode cleanup runs on priority 9, and that makes the the_content
filters from ThemeCo themes fail. Thus this needs to run before that.