Site icon Catch Themes

Search Results not displaying Shortcode content

I have created some custom shortcodes that displays an event's date or location. The shortcodes work great with no errors. Problem is when you use the site's search tool, the results do not display the shortcode's content. All results are Pages, not Posts. === Example 1 ===
(Shortcode for Event Date = SATURDAY, AUGUST 4th) 

Page Displays:
SATURDAY, AUGUST 4th
3:00 PM – 6:00 PM
Home Arts

Results Excerpt Displays:
3:00 PM – 6:00 PM
Home Arts
=== END Example 1 === === Example 2 ===
(Shortcode for Event Location = GENERAL PARKING) 

Page Displays:
GENERAL PARKING
- Express Train

Results Excerpt Displays:
- Express Train
=== END Example 2 === I tried adding the following -- per link https://catchthemes.com/support-forum/topic/text-within-shortcodes-removed-from-front-page-excerpts/
add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode');
But did not work. What can I do to resolve this issue? Thanks!
Exit mobile version