Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Meta Tag Code for Description and Keywords
5 years, 1 month ago
I changed my title tag to this which worked very well.
<title><?php wp_title(”); ?></title>
but my description tag and keywords tag wont populate with what I’m putting in the Title Settings in Yoast. Here is what the tags look like on my template for description and keywords:
<meta name=”keywords” content=”<?php wp_title(); echo ‘ , ‘; bloginfo( ‘name’ ); echo ‘ , ‘; bloginfo( ‘description’ ); ?>” />
<meta name=”description” content=”<?php wp_title(); echo ‘ | ‘; bloginfo( ‘description’ ); ?>” />
Is there simple code fix like there was for the title so these will work as well? Thanks for you help.
I have read through this but don’t see where it talks about the keywords tag code or the keywords description code…
You actually don’t have to put anything in your template, or hard code anything other than the title change.
It provides the HTML meta tag automatically based on the settings you have under SEO >> Titles in your Dashboard.
5 years ago
ahhhh, i didn’t see the Yoast description and Keywords a bit farther down in the head. I just removed the description and keywords at the top of the head and wala!
thanks very much.