22

I read this question but it wasn't what I was looking for exactly. I'm new to Wordpress and a little confuse with the functions and everything.

How can I get the metadescription in the loop for each post?

Thanks !

  • 1
    In what way was it not what you were looking for exactly? – s_ha_dum Aug 25 '13 at 15:50
33

Add the following code in the archive template loop to display Yoast SEO meta description for each post.

echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); 
|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.