Title: Snippet variable question
Last modified: October 1, 2019

---

# Snippet variable question

 *  Resolved [maddagepasindu](https://wordpress.org/support/users/maddagepasindu/)
 * (@maddagepasindu)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/snippet-variable-question/)
 * Can I add the WordPress default content field as a snippet variable in meta description?
   
   ex: the_content

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [amboutwe](https://wordpress.org/support/users/amboutwe/)
 * (@amboutwe)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/snippet-variable-question/#post-11987969)
 * Yoast SEO does not include a variable for the content field. And I’m not quite
   sure there would be a need to output the entire content into the meta description.
   If you do not output a meta description tag (the default behavior), search engines
   will create their own description from the content of the page automatically.
 * That said, you or your developer can use the `wpseo_register_extra_replacements`
   filter to add a custom variable for the content if you have a specific reason
   to use it.
 * An example code snippet can be found here:
    [https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748#file-yoast_seo_title_custom-variable-php](https://gist.github.com/amboutwe/550c10ede7d065d9264930f5480ca748#file-yoast_seo_title_custom-variable-php)
 * Typically code snippets are added to your theme’s functions.php file. If you’re
   not familiar with using code snippets, these articles have wonderful advice:
   
   [http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/](http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/)
   [http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/](http://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/)
 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/snippet-variable-question/#post-12008260)
 * Closed. No further questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Snippet variable question’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/snippet-variable-question/#post-12008260)
 * Status: resolved