an
groups-icon

header php meta

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    0 points
    Beginner

    I’m finding that the share button for Facebook is returning the wrong details. After researching this further apparently I need to add this to the meta information:
    <meta property=”og:description” content=” ” />
    I’ve done this by editing header.php but for some reason the only variables I can get to pick up any information are:
    <meta property=”og:description” content=” <? the_title(); ?>” />
    and
    <meta property=”og:description” content=”<? bloginfo(‘name’); ?> ” />

    What I really want is to pick up the contents of the listing or even just the listing excerpt. I’ve tried using
    <meta property=”og:description” content=”<? the_content(); ?> ” />
    but nothing is picked up. I’ve tried every variation possible but just can’t get any more than the Title and Blog Name to show.

    Any suggestions on what else I should try would be greatly appreciated.

    Regards
    James

    May 27, 2015 at 4:08 am
  • Mark Fail
    11,848 points
    Platinum User
    Bronze User Silver User Gold User Platinum User Helpful Award Fast Responder Thank You Coffee Villian Award Video Testimonial
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 27, 2015 at 6:03 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 27, 2015 at 6:20 am
  • Mark Fail
    11,848 points
    Platinum User
    Bronze User Silver User Gold User Platinum User Helpful Award Fast Responder Thank You Coffee Villian Award Video Testimonial
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 27, 2015 at 6:22 am
  • Hemanta Chakladar
    5 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 27, 2015 at 6:33 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 27, 2015 at 9:14 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    May 28, 2015 at 1:24 am

194

Views

6

Replies