DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Google+ is the newest project from Google. If you’re using it, you may want to know how you can easily display your latest Google+ update on your WordPress blog. This is what you’re going to learn with today’s recipe.

Simply paste the following code where you want to display your latest Google+ update. Don’t forget to put your Google+ ID on line 3.

<?php
	include_once(ABSPATH.WPINC.'/rss.php');
	$googleplus = fetch_feed("http://plusfeed.appspot.com/103329092193061943712"); // Replace 103329092193061943712 by your own ID
	echo '<a href="';
	echo $googleplus->items[0]['link']; echo '">';
	echo $googleplus->items[0]['summary'];
	echo '';
?>

Thanks to Valentin Brandt for the cool tip!

Tags

12 Comments

  1. Nice thanks! Though fetch_rss() is deprecated, use fetch_feed() instead.

  2. Thanks for the code! I wondered how long it would take for someone to figure out how to put G+ feeds on a WP blog… but it’s far beyond my capabilities. 🙂

  3. nice code, but it’s something you better put in a function and cache. Worth mentioning

  4. @Leon: Thanks, updated the code.
    @Christophe: Definitely!

  5. Thanks for the snippet!

  6. Looks simple enough and many would probably use it. I use to display some tweets from Twitter and so forth, my question is SIMPLE.

    What do you really get by dispplaying your last tweet/Google + FB?

  7. Simply awesome recipe to display google+ update. Thanks Jean. 😀

  8. I did not get it to work

  9. Nice tip! I am gonna test it today or tomorrow. Thanks for sharing anyway!

  10. Why does Google plus not work in my website – Ive tried so many things, but while Twit/FB seem woring fine, google plus is not… can someone help??

  11. And how would you display your wordpress posts in Google+ automatically?

  12. Finally i can show my G+ update on my blog. I have same question with steph, how to update our G+ with our latest blog post?

Leave a Comment

Your email address will not be published. Required fields are marked *