
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.

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!
12 Responses
Nice thanks! Though fetch_rss() is deprecated, use fetch_feed() instead.
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.
nice code, but it’s something you better put in a function and cache. Worth mentioning
@Leon: Thanks, updated the code.
@Christophe: Definitely!
Thanks for the snippet!
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?
Simply awesome recipe to display google+ update. Thanks Jean.
I did not get it to work
Nice tip! I am gonna test it today or tomorrow. Thanks for sharing anyway!
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??
And how would you display your wordpress posts in Google+ automatically?
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?
Trackbacks: