New! Shared posts from my Google Reader in a sidebar
There is a new section in the sidebar titled “Latest shared posts”. It displays latest three posts marked by me as shared in my Google Reader account. List is created dynamically using WordPress core function wp_rss().
Here is a code responsible for shared post section in my sidebar.php file:
1 2 3 | <h2>Latest shared posts</h2> <?php include_once(ABSPATH . WPINC . '/rss.php'); wp_rss('http://pipes.yahoo.com/pipes/pipe.run?_id=PPbAnS7F3RGzlVb_pgt1Yg&_render=rss&v2', 3); ?> |
As you can see I use RSS from Yahoo! Pipes. My Pipe is a simple filter for ATOM feed produced by Google Reader for shared posts. It removes all posts content and modifies a bit post titles.
It’s simple isn’t it? And no extra plugins for your WordPress
[...] Vote New! Shared posts from my Google Reader in a sidebar [...]
[...] Vote New! Shared posts from my Google Reader in a sidebar [...]