Support » Fixing WordPress » Problem with metadescription

  • Hi there,

    I have a problem with my meta-descriptions. I’m using this code:

    <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <meta name=”description” content=”<?php the_excerpt_rss(); ?>” />
    <?php endwhile; endif; elseif(is_home()) : ?>
    <meta name=”description” content=”Blabla” />
    <?php endif; ?>

    It worked for me several times, but now there’s something wrong. Suddenly there is ‘Continue Reading’ on the left corner: http://www.onsvoer.nl/wp-content/uploads/2011/06/FoutmeldingSite.jpg

    Where does this come from and how can I get it away? Am I doing something wrong?

    Thanks,
    Erik

Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php if ( is_single() || is_page() ) { ?>
    <meta name="description" content="<?php the_excerpt_rss(); ?>" />
    <?php } elseif ( is_home() ) { ?>
    <meta name="description" content="Blabla" /> <?php } endif; ?>

    I dont know why you using <?php the_excerpt_rss(); ?>

    I don’t know. Just copied the code from a guide somewhere!

    Or isn’t that because the metadescription has to be the same as the excerpt?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with metadescription’ is closed to new replies.