31

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
  • 1
    In what way was it not what you were looking for exactly?
    – s_ha_dum
    Aug 25, 2013 at 15:50

1 Answer 1

47

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); 

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .