Forums

Google search results including meta info (1 post)

  1. newmomsforum
    Member
    Posted 3 years ago #

    Hi Folks

    I'm having a hard time trying to figure out what I have done to get the following results for one of my WP sites.

    Pop on over to Google and you'll see what I mean:

    http://www.google.com/search?hl=en&lr=&q=site:www.newsgab.com

    You'll see that most of my sites reults display something like:

    Celebrity News> <meta name=

    Within the description field.

    My header code looks like this:

    <?php

    error_reporting(0);
    require(ABSPATH . 'wp-blog-header.php');

    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    <title><?php wp_title(''); ?> : Newsgab</title>
    <meta name="description" content="<?php wp_title(''); ?>, Entertainment, gaming and Celebrity News>
    <meta name="keywords" content="<?php wp_title(''); ?> entertainment gaming celebrity news">
    <meta name="robots" content="index,follow">
    <meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" />

    You'll see I'm using the <?php wp_title(''); within my title, description and keyord tags so that the title of my blog entry is austomatically populated in these fields.

    Looking at the source everything looks OK, however google seems to be picking up this code from somewhere and including it within the results.

    Any ideas?

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags