WordPress.org

Ready to get started?Download WordPress

Forums

Two Meta Description Tags (3 posts)

  1. Charlie
    Member
    Posted 3 years ago #

    Each post on my site has two meta name="description" tags. The correct one is inserted by the Ultimate SEO plugin. The second one is being inserted by wp_head.

    On some pages the second tag says content=" " and on other pages it says content="null  "

    If it helps, the three lines above the bogus tag are:

    <meta property="og:type" content="article" />
    <meta property="og:title" content="Quilting Books For Beginners" />
    <meta name="title" content="Quilting Books For Beginners" />

    and the line following it is:

    <meta name="medium" content="blog" />

    Can anyone suggest where these bogus tags are coming from and how I can make them stop?

  2. Charlie
    Member
    Posted 3 years ago #

    Sorry, I meant to say ...

    On some posts the second tag says content=" " (three spaces), and on other posts it says content="null &nbsp;" (just as you see it).

  3. leonanderson88
    Member
    Posted 3 years ago #

    do you use simple facebook connect plugin?
    If so use:

    remove_action('wp_head','sfc_like_meta');
    remove_action('wp_head','sfc_meta_head');

    to remove these tags from the head.

    But be careful, they are necisary if you are using xfbml in your page for like buttons, or any linking into facebook for that matter.
    Id advise adding these open graph (og:title) tags to your head with your own function ie.

    function my_head_meta(){
    meta tags...
    }
    add_action('wp_head','my_head_meta')

    Facebook developers site has extensive documentation on the use of open graph tags for integration.
    Facebook docs.
    And use this link linter to check if your site is readable by facebook.

Topic Closed

This topic has been closed to new replies.

About this Topic