WordPress.org

Forums

[resolved] Adding Meta Tags Generated By All In One SEO (1 post)

  1. JYohann
    Member
    Posted 4 years ago #

    Hi there,

    I'm a newbie in PHP and I'd like to ask how I can do this. What I'd like to do is to add the meta keywords generated by All in one SEO to be added to the meta description of each post. Here's what I have for the meta description right now:

    <meta name="description" content="<?php if ( is_single() ) {
    single_post_title('', true);
    } else {
    bloginfo('name'); echo " - "; bloginfo('description');
    }
    ?>" />

    Or at least add the meta keywords to the description of each post. I'm actually trying to follow the format of a famous website and I'd really appreciate it if you can help me.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic