WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Meta Tag Code for Description and Keywords (4 posts)

  1. nickrw@gmail.com
    Member
    Posted 2 years 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.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. nickrw@gmail.com
    Member
    Posted 2 years ago #

    I have read through this but don't see where it talks about the keywords tag code or the keywords description code...

  3. couturefreak
    Member
    Posted 2 years ago #

    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.

  4. nickrw@gmail.com
    Member
    Posted 2 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic