How To Add Shortcodes To Search Excerpts
By default, shortcodes are going to be stripped from search result excerpts. We've done this because if the entire shortcode is not contained within the excerpt limit then it can break and will not display your content as you want in the excerpt. If you would like to add shortcodes back into the search results excerpts, then you can follow the steps below.
1. Edit search.php file in theme and find:
2. Replace it with: