• Hello;

    I would like to put my post tags as meta keywords in my post page (for home page I used a traditionnal meta keywords)

    So in my header.php I have this :

    <?php if ( is_home() ) { ?>
        <meta name="keywords" content="mes mots clés" /> 
    
    <?php } else if ( is_single() ) { ?>
    <meta name="keywords" content="<?php st_meta_keywords(); ?>" />

    But when I type this code, I have as meta keywords the comment of st_get_meta_keywords function :

    '<!-- Generated by Simple Tags ' . $simple_tags->version . ' - http://wordpress.org/extend/plugins/simple-tags -->'

    My question is : What is the correct code to type to have my tags as met keywords ?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter binbin

    (@binbin)

    Anyone got an idea ?
    thanks

    Try this

    <?php if ( is_home() ) { ?>
    <meta name="keywords" content="mes mots clés" />
    <?php } else if ( is_single() ) { ?>
    <?php st_meta_keywords(); ?>
    <?php } ?>

    The function st_meta_keywords(); add automatically the HTML Code of Meta Keywords.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simple Tags] Theme IMPLEMANTATION’ is closed to new replies.