Skip to content

Instantly share code, notes, and snippets.

@jeffreynolte
Created April 25, 2014 01:10
Show Gist options
  • Save jeffreynolte/11274833 to your computer and use it in GitHub Desktop.
Save jeffreynolte/11274833 to your computer and use it in GitHub Desktop.
Open Graph tags for use in WordPress themes
<meta property="og:title" content="<?php wp_title(); ?>" />
<meta property="og:site_name" content="<?php wp_title(); ?>" />
<meta property="og:url" content="<?php echo get_permalink( $post->ID ); ?>" />
<meta property="og:description" content="<?php bloginfo('description'); ?>" />
<meta property="og:image" content="<?php bloginfo('template_url'); ?>/images/Untitled-6-2.png" />
<meta property="og:type" content="website" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment