I have installed WordPress SEO by Yoast onto a site Im building. They have an area when you can add the description for the meta information.
However I want to add this to a twitter meta tag:
<meta name="twitter:description" content="">
Does anyone know how to grab the description and output it for a single page?
Cheers
You can use
wpseo_get_value('metadesc');
has been deprecatedPlease use
WPSEO_Meta::get_value("metadesc");
If you need to add
twitter:description
meta data. Please follow below steps.Now if you visit the post page or any single page, you can see a meta tag with name twitter:description added to the head.
Hope this works for you