Stripping shortcode from custom excerpt function
I’m using the following function to create a custom excerpt for my homepage and categories pages so I can do it by character count and have a custom “read more”. However, I have captions shortcode showing up in my excerpt.