How to show your most recent Google+ update

Google+ is Google’s Social Networking Platform. Today’s Snack will show you how to display your most recent Google Plus update on your WordPress site.

Add this code below to your current WordPress theme’s template file where you want the Google+ update to show. An example could be your sidebar.php file.

/**
 * Show most recent Google+ Update
 *
 * @author WPSnacks.com
 * @link http://www.wpsnacks.com
 */
<?php
	include_once(ABSPATH.WPINC.'/rss.php');
	$googleplus = fetch_feed("http://plusfeed.appspot.com/Your_Google+_ID_Here"); 
	echo '<a href="';
	echo $googleplus->items[0]['link']; echo '">';
	echo $googleplus->items[0]['summary'];
	echo '';
?>

Just be sure to replace Your_Google+_ID_Here with your Google Plus ID number.

Be sure to replace Put_Adsense_Code_Here with your Adsense generated Ad code. Then just put [Adsense] anywhere in your content that you would like to display that Adsense Ad. Hope this helps, enjoy!

   Related Sponsored Links

Disclaimer: The information contained in this website is for general information purposes only and in no event will this site or its owners be liable for any losses or damages associated with your use of our site or content. Click here to see our full Disclaimer.

Leave a Comment

*