Authorship markup for sites used to be an exciting term back when Google was using it in the search results but has since faded back as Google decided that it’s not for everyone. Now it may make a come back as Facebook is now using it to help you get more followers and at the same time get you to add yet another Facebook URL in your code.
This is done through the article:author meta tag. When you add this tag in your HTML code and include your Facebook profile’s URL, Facebook will show your name as the author in articles shared from your blog. Additionally, your name will be linked to your profile, and if you have enable followers, people will see a “Follow” button as well.
How does one go about adding this information? In my case, I have Jetpack installed, which adds the tag already, linking to an automated archive page of all my posts. To override it, I added a small function in functions.php, provided by Jeremy Herve
function fb_custom_author_tag( $tags ) { if ( is_singular() ) { // Remove the link to Facebook Profile added by Jetpack unset( $tags['article:author'] ); $tags['article:author'] = 'https://www.facebook.com/MYPROFILE'; } return $tags; } add_filter( 'jetpack_open_graph_tags', 'fb_custom_author_tag' );
And that’s all there is to it. You can see the end result in the embedded post above.
If you don’t have Jetpack, you can add a simple function in functions.php like this
function custom_meta_author() { echo "<meta > <strong>The Pinterest factor</strong> Looking into this I was reminded that Pinterest also uses Open Graph tags. For the author tag though, Pinterest breaks the OG rules and instead of a URL, it expects to find a name. I attempted to use an array of strings (supported by OG in the case of multiple authors), by having two strings, one with the Facebook URL and one with my name. That actually worked for Pinterest but Facebook rejected the code as invalid. So my implementation stated as above, with authorship declared for Facebook only. That said, you show <a href="https://developers.pinterest.com/rich_pins/validator/" target="_blank">test how Pinterest parses your tags</a> and enable the Rich Pins feature which improves how your articles show up on Pinterest. <Table border=0><tr><td width=50%><a href="https://markg.blog/wp-content/uploads/2015/06/pinterest-no-author1.png"><img src="https://markg.blog/wp-content/uploads/2015/06/pinterest-no-author1-250x200.png" alt="Pin without the Rich Pins feature enabled" width="250" height="200" class="alignnone size-thumbnail wp-image-138627" /></a>Without Rich Pins </td><td width=50%><a href="https://markg.blog/wp-content/uploads/2015/06/final-pinterest.png"><img src="https://markg.blog/wp-content/uploads/2015/06/final-pinterest-189x200.png" alt="the same pin with Rich Pins enabled" width="189" height="200" class="alignnone size-thumbnail wp-image-138620" /></a>Rich Pins enabled</td></tr></table> <strong>And what about Google?</strong> Google has <a href="http://searchengineland.com/authorship-dead-long-live-authorship-217209" target="_blank">dropped authorship information</a> as it found that it wasn't very well for them. Instead they are now pushing for <a href="https://developers.google.com/structured-data/" target="_blank">Rich Snippets</a>, part of which are Social Profile Links You can add it easily again with a small function [code lang="php"]function custom_google_social_links() { echo '&lt;script type="application/ld+json"&gt; { "@context" : "http://schema.org", "@type" : "Person", "name" : "MY NAME", "url" : "http://MYBLOG.COM", "sameAs" : [ "https://www.facebook.com/MYPROFILE", "https://twitter.com/MYPROFILE", "https://plus.google.com/+MYPROFILE"] } &lt;/script&gt;'; } add_action('wp_head', 'custom_google_social_links');
You can actually add more information about yourself, and eventually Google might pick it up and index it. That said, adding the code above doesn’t guarantee that Google will pick up and show your social links. Just do it and make a wish to the Google fairy…
All in all, we see that formats and standards are continuously changing. Depending on your audience and social media/marketing strategies, you can choose and adapt what kind of structured information you give out to social media networks and search engines.