I want to remove every single shortcode from the excerpt. It looks bad, and I would rather have empty excerpt than one that strips shortcodes for example if I have:


my search results, visual composer excerpt shows:


I want it to show nothing, nor shortcode nor content in it. Whats function for this, I lost 1h googling but all I found is not what I want to do.

  • Can you give us more details. I don't understand why there would be shortcodes showing in your excerpt. – Jeff Mattson Sep 10 '17 at 3:15
  • Did you tried using strip_shortcode()? – Kumar Sep 10 '17 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.