Another Quick Tip! Yay! Last night I discovered how easy it is to add snippets of blog posts to other non wordpress pages (check out my homepage) with Simplepie and I thought I would show you guys how! Leave a comment and let me know what you guys think or if you have any questions!
Click read more to get the code snippets and see simple pie in action!
Download Simple Pie: http://simplepie.org/
Installing Simple Pie: http://simplepie.org/wiki/setup/setup
Code that goes at the top of your page:
[]
< ?php
// This shows where simple pie is located simplepie.inc.
require_once(’php/simplepie.inc’);
// Your Feed Address
$feed = new SimplePie(’http://feeds2.feedburner.com/designoblog’);
$feed->handle_content_type();
?>
[/]
And the code to throw in where you want the blog posts to show up:
[ language="php"]
< ?php foreach ($feed->get_items() as $item): ?>
15 Responses to “Quick Tip #16 Super Simple Pie!”
Leave a Reply
Trackbacks & Pingbacks:
-
Pingback from SimplePie: Weblog » New SimplePie Screencasts
May 15th, 2009 at 5:48 pm[...] Quick Tip: Super SimplePie! — Niki Brown quickly shows you how to drop RSS content into an existing page. [...]
-
Pingback from A Collection of Beginner Simplepie Tutorials
July 12th, 2009 at 10:13 am[...] Niki shows how she added a RSS to her home page. Quick Tip #16 : Super Simplepie [...]
-
Pingback from 14 Tutorials to Get You into SimplePie - The Designed
July 29th, 2009 at 12:34 pm[...] Super Simple Pie! – Niki [...]










Gabe says:
Nice tip! Stumbled for ya.
February 10th, 2009 at 6:50 am
liz says:
very cool!
February 10th, 2009 at 10:12 am
Bruno Abrantes says:
Nice tip, I didn’t know about SimplePie!
February 10th, 2009 at 11:54 am
Ryan Parman says:
Sweet! Glad you found it so easy.
February 10th, 2009 at 6:51 pm
Ross says:
Great tip Niki. This is one that I suspect I’ll use a lot.
Keep up the great work!
February 11th, 2009 at 5:31 am
Latina says:
Nice tip. I’ll give it a try.
February 15th, 2009 at 11:09 pm
Jacques says:
Cool. Do you know of a way to limit the feed to only the latest 2-3 posts?
March 16th, 2009 at 6:18 am
Devin says:
hi, I’m just wondering if simplepie is able to display rss with image. i’ve been pulling my hair all day try to make it work. thank you for the help
March 23rd, 2009 at 3:40 pm
Fiona says:
Hello
Could you please show, how to shorten titles and discriptions, too?
For example:
I only want to show the last 3 entries.
With titles not longer than 150 Caracter
And 250 Caracters for the Entries
Thank you.
March 24th, 2009 at 8:36 am
Nikki says:
Hey Niki, I actually achieved this by a different method recently coz i wanted to display my latests posts on my portfolio which is a non-wordpress site. I was able to do it using this great tut! http://www.corvidworks.com/articles/wordpress-content-on-other-pages
April 5th, 2009 at 12:12 am
Cole says:
Very, very useful little vid! Perfect to get one quickly rolling, especially after screwing around with other RSS parsers that weren’t near as user friendly for days. Feeling a lot better about getting my own clients into RSS in a solid way. Thanks Nikki.
September 18th, 2009 at 6:16 am
Peter says:
Hey thanks for the help!!, with this tute and a couple of others i managed to get a truncated feed from wordpress into a spry accordion on my homepage, here is the result http://www.passionfruitdesign.com.au
November 18th, 2009 at 6:59 pm