How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()
Add the following code in the archive template loop to display Yoast SEO meta description for each post.
1 | echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.