Support » Fixing WordPress » Wrong Description on Facebook Share

Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael


    Forum Moderator

    there is no defined output for <meta property="og:description" content="" /> so facebook possibly grabs what it can find.

    have you edited the ‘fb og’ code by chad?

    you can paste the full code of that section into a and post the link to it here so someone can check it.

    The whole deal of the website is for people click on the pictures and share them on facebook easy. a week ago, the site was only sharing the address.. now is grabbing that description.

    I saw that meta tag and deleted it from the header, but it stills catches that description when posting on facebook

    Ill post the current code.

    <iframe src=”” style=”border:none;width:100%”></iframe>



    Forum Moderator

    because your front page is a static page, you might need to add something to the code to fill a default og description in this case;

    example (first section only shown – keep the rest as it is):

    <?php if(is_single() || is_page()) { ?>
            <meta property="og:type" content="article" />
            <meta property="og:title" content="<?php single_post_title(''); ?>" />
    <?php if( is_front_page() ) { ?>
          <meta property="og:description" content="<?php bloginfo('description'); ?>" />
    <?php } ?>
            <meta property="og:url" content="<?php the_permalink(); ?>"/>
            <meta property="og:image" content="<?php if ( $thumb[0] == null ) { echo $default_img; } else { echo $thumb; } ?>" />

    or even replace
    <?php bloginfo('description'); ?>
    with a static text.

    Let me try it. I’ll update

    I changed it and it is the same, but I elieve it takes a while for facebook to catch the new updates, I just deleted the whole header and test the page out and shared the same.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong Description on Facebook Share’ is closed to new replies.