Created
April 24, 2012 16:09
-
-
Save baczoni/2481067 to your computer and use it in GitHub Desktop.
Wordpress: Display latest Google+ post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once(ABSPATH.WPINC.'/rss.php'); | |
$googleplus = fetch_feed("http://plusfeed.appspot.com/123456789..."); // Replace 123456789... by your own ID | |
echo '<a href="'; | |
echo $googleplus->items[0]['link']; echo '">'; | |
echo $googleplus->items[0]['summary']; | |
echo ''; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment