The MU forums have moved to WordPress.org

Optimize wordpress meta header (1 post)

  1. indeepdark
    Member
    Posted 16 years ago #

    Hi,

    I recently change my meta head on my wpmu install.

    Now it looks like (I just put what is different):

    <meta http-equiv="content-language" content="<?php language_attributes(); ?>" />
    
    <title><?php if ( is_single() ) { echo(wp_title('').' sur');} ?><?php if ( is_category() ) { echo (single_cat_title('').', ');} ?><?php if ( is_archive() ) { echo ('Archives'.' de');} ?> <?php bloginfo('name'); ?></title>
    
    <meta name="description" content="<?php if ( is_category() ) { echo (category_description(''));} ?><?php if ( is_home() ) { echo(bloginfo('description'));} ?><?php if ( is_single() ) { echo(wp_title(''));} ?>">

    Do you think that's should be a good mod for visibility on Google search (for ex.)?

    I also want a meta author balise, but don't find the good function to be called to display first & last name... And if you have a way to get a short description of the article without calling the_excerpt (cause I don't use it), please share !

    Thanks

About this Topic

  • Started 16 years ago by indeepdark