Support » Fixing WordPress » bloginfo('description') returning swfobject code

  • javy

    (@javiermatosdes)


    I’ve got the following 2 lines in my header:

    `<meta name=”description” content=”<?php the_excerpt_rss(); ?>” />
    <?php endwhile; endif; elseif(is_home()) : ?>
    <meta name=”description” content=”<?php bloginfo(‘description’); ?>” />
    <?php endif; ?>`

    When I run my page through the markup validator I get an error with swfobject.embedswf code being returned for my blog description. Its related to JW player, could this be an issue with the JW player plugin? Or is it something i’ve screwed up on my end?

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

    (@javiermatosdes)

    Is there any way for me to test what bloginfo(‘description’) should be returning vs. what it actually is? It is supposed to be the tag line set up in general options, right?

    Thread Starter javy

    (@javiermatosdes)

    I think I’ve figured out the problem, but I’m not sure what the solution is.

    bloginfo(‘description’) seems to work fine when I try it on other pages. So it seems that the code above is returning the_excerpt_rss, which is taking the swfobject code from the_content, since i’m using JW Player’s shortcode in the page.

    I’d like to use the_excerpt_rss on other pages but I’m not sure how to get around this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bloginfo('description') returning swfobject code’ is closed to new replies.