Title: Excluding shortcode content from meta description
Last modified: November 3, 2016

---

# Excluding shortcode content from meta description

 *  Resolved [phirefly](https://wordpress.org/support/users/phirefly/)
 * (@phirefly)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/excluding-shortcode-content-from-meta-description/)
 * Hello,
 * is there a method of telling Yoast SEO to ignore content that falls within the
   shortcode tags when auto generating meta description [shortcode]so Yoast would
   ignore this text[/shortcode]?
 * The reason I ask is because my site uses shortcodes to conditionally display 
   content to users based on role at the beginning of the post & in excerpt…these
   shortcodes eg “[shortcode]so Yoast would ignore this text[/shortcode]” are being
   used as the meta description.
 * Ideally I would like Yoast meta snippets to ignore content contained within shortcode
   tags.
 * Thanks

The topic ‘Excluding shortcode content from meta description’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [phirefly](https://wordpress.org/support/users/phirefly/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/excluding-shortcode-content-from-meta-description/)
 * Status: resolved