Skip to content

Instantly share code, notes, and snippets.

@baczoni
Created April 24, 2012 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baczoni/2481067 to your computer and use it in GitHub Desktop.
Save baczoni/2481067 to your computer and use it in GitHub Desktop.
Wordpress: Display latest Google+ post
<?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