Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Hide sortcode from search results Reply To: Hide sortcode from search results

#9777
Tom
Keymaster

Let’s try manually removing it:

add_filter( 'get_the_excerpt', function( $content ) {
    $content = preg_replace( '#\[[^\]]+\]#', '', $content );

    return $content;
} );