-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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