How to Establish Authorship For Your Posts In WordPress

Yesterday, I show you how you can establish authorship for your site/content so that your Google profile picture will appear beneath the search results. However, in WordPress, it may not be as easy as it seems. WordPress is using a template system to display your content, so adding the rel=”author” tag will require some tweaking of the theme.

Here’s how you can establish authorship in WordPress.

Note: The following solution is just one of the many ways to establish the authorship of your content. If you have a better, easier way, feel free to use it.

1. Make sure you have an About page that describes who you are and what your blog is about. At the end of the content (of the About page), insert the following link:

Remember to replace the http://your-google-profile-url with your Google Profile URL.

Note: The Google Profile URL is of the format: https://plus.google.com/1234567890987654321.

Next, go to the theme editor and open your functions.php file. Insert the following code at the end of the file:

Save the changes.

What the above code does is to insert a sentence at the end of your article with a link to your About page.

1. Get all your authors to update the Jabber/Google Talk field in the Profile section with their Google Profile URL.

2. Open the functions.php file and insert the following code:

The above code will grab the Google Profile URL from the author’s Jabber/Gtalk field and insert the link to the end of the content.

That’s it.

It will take 1-2 weeks for Google to show your profile picture in the search results. Meanwhile you can use the Rich Snippet Test Tool to see how your page looks like in the search results.

5 comments

  1. Damien – I’ve followed your instructions above but after entering the HTML code at the end of the functions.php file I get this response:

    “Parse error: syntax error, unexpected $end in /home/XXX/public_html/XXXXX.com/wp-content/themes/sleek/functions.php on line 697”

    (I’ve obscured my real .com URL and username here.)

    What suggestions do you have, please?

  2. Damien – Further to my recent comment, I discover that I now cannot open my WordPress site!

    I keep getting the same “Parse error” message every time I try to open the site or go to wp-admin. I’ll now have to contact my hosting company to fix things!

    • Greg, the error show that you did not have a proper closure for the code. Please check again that you have copied and pasted the code correctly. It should be placed at the end of the functions.php file, but before the ?> tag. If you still have a problem, use the contact form to contact me and I will personally guide you through it.

Comments are closed.

Sponsored Stories