DEV Community

mhsohag11
mhsohag11

Posted on

Answer: How can I Get Yoast Meta from Post instead of Wordpress Meta?

What exactly is the problem? This will do the trick just fine.

echo substr(get_post_meta($post->ID, '_yoast_wpseo_metadesc', true), 0, 100);

Top comments (0)