Skip to content

Instantly share code, notes, and snippets.

@patrickodacre
Created April 24, 2014 01:43
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 patrickodacre/6a87a99d999ad8635622 to your computer and use it in GitHub Desktop.
Save patrickodacre/6a87a99d999ad8635622 to your computer and use it in GitHub Desktop.
PHP code for Multiple Publishers. Put in the header of the site. Can use Header and Footer Plugin.
// Put this in the header for multiple location publishership
<?php
global $post;
if($post->post_type == 'page' && $post->ID == 'PAGE_POST_ID_HERE'){
echo '<link href="Google_Plus_URL_1" rel="publisher" />';
}
if($post->post_type == 'page' && $post->ID == 'PAGE_POST_ID_HERE'){
echo '<link href="Google_Plus_URL_2" rel="publisher" />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment