Skip to content

Instantly share code, notes, and snippets.

@Pross Pross/random.php
Created Mar 24, 2014

What would you like to do?
add_action( 'wp_head', 'pagelines_google_author_head' );
function pagelines_google_author_head() {
global $post;
if( ! is_page() && ! is_single() && ! is_author() )
$google_profile = get_the_author_meta( 'google_profile', $post->post_author );
if ( '' != $google_profile )
printf( '<link rel="author" href="%s" />%s', $google_profile, "\n" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.