Skip to content

Instantly share code, notes, and snippets.

@johannesnagl
Created June 20, 2013 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannesnagl/5821365 to your computer and use it in GitHub Desktop.
Save johannesnagl/5821365 to your computer and use it in GitHub Desktop.
Add New Open Graph Tags for Publisher & Author to your Wordpress Setup; Read more here: http://garage.socialisten.at/2013/06/new-open-graph-tags-for-article-publisher-author/
// read more here: http://garage.socialisten.at/2013/06/new-open-graph-tags-for-article-publisher-author/
// (c) @michaelkamleitner
if ( ! function_exists('additional_opengraph_tags') ) {
function additional_opengraph_tags() {
if ( is_single() and ! is_page()) {
?>
<meta property="article:publisher" content="https://www.facebook.com/YourPageName" />
<meta property="article:author" content="https://www.facebook.com/YourAuthorName" />
<?
}
}
add_action('wp_head', 'additional_opengraph_tags');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment