Post Loop and SEO Yoast Meta Description Code
-
Hi. I’m not a developer so I’m hoping someone can provide some guidance on a question I have. I have a page on my site that I’d like to use the Post Loop widget for so I can have a list of links to other post pages on my site. My WP site already has Posts pages but I installed the SEO Yoast Plugin and like the fields it provides. I’d like to use the posts loop function to pull/use the SEO Yoast Meta Description field information from each individual post page so that it shows up under a post’s title. My posts aren’t identified by numbers but by the titles via the SEO Yoast plugin. I’ve found some code within WordPress from other user’s support questions but I don’t know the correct code so it will work and I’ve endlessly tried to figure it out on my own. I have the following code so far that doesn’t work:
[loop type=”post” category=”latest news”]
[field title-link]
<?php echo get_post_meta($post->ID, ‘_yoast_wpseo_metakeywords’, true); ?>
[/loop]Could someone provide any guidance on this code for me that could work please? I’d be grateful!
- The topic ‘Post Loop and SEO Yoast Meta Description Code’ is closed to new replies.