ThemeShaper Forums » Thematic


Facebook Share Plug-in

(2 posts)
  • Started 3 years ago by matius
  • Latest reply from matius
  • This topic is not resolved
  1. Hey guys; thought I'd try to ask this another way. I'm having a problem where when I add any Facebook Like or Share plug-in to my posts, they don't pick up the post title & add it to Facebook - it just adds the main blog title. That being said...

    I was instructed to try open graph tags in my header.php file - but the way that's setup I'm not sure how to do it.

    The code...

    <?php if (is_single()) { ?>
    <meta property="og:title" content="<?php single_post_title(''); ?>" />
    <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" />
    <meta property="og:type" content="article" />
    <meta property="og:image" content="<?php echo wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) ) ?>" />
    <?php } ?>

    First off - does that sound right? If so, how would I do it?

    Second - are there any write-ups or tutorials with getting Facebook Share/Like to work with Thematic. I don't think I've changed it in any way that should mess up its functionality so really at a loss on that.

    Appreciate any help-

    Posted 3 years ago #
  2. ... just noticed something. If you'll see on; the "movie" widget to the right - those are actually posts. Before when I had a like button there, the correct post title was used.

    Why would that happen there in the widgets and not on the blog or single blog post?

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.