Display your latest Google+ update on WordPress

September 19, 2011 Social Networks

Google+ (pronounced “Google plus”) is the newest project from Google Inc. It is a social network somewhat similar to Facebook and Twenty. Google has finally released Google+, the company’s top secret social layer that turns all of the search engine into one giant social network. If you’re using it, you may want to know how you can easily display your latest Google+ update on WordPress blog.

Simply paste the code below where you want to display your latest Google+ update. Please note that you have to make some minor changes.

<?php
	include_once(ABSPATH.WPINC.'/rss.php');
	$googleplus = fetch_rss("http://plusfeed.appspot.com/100000000000000000001");
	echo '<a href="';
	echo $googleplus->items[0]['link']; echo '">';
	echo $googleplus->items[0]['summary'];
	echo $googleplus->items[0]['updated']; //Optional
	echo '';
?>

100000000000000000001 :You have to replace this with your Google+ profile ID.

items[0] : Witch update to show. For example [0] for the last update, [1] to display the second last update, and so on.
['summary'] : You can display either ‘summary‘ or ‘title‘ of your update.
['updated'] : Optional- Shows the date of the update.

No related posts.

Google+,


Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>