View Single Post
    #4 (permalink)  
Old 10-09-2008
Codehead's Avatar
Codehead Codehead is offline
Administrator
Company name: Codehead LLP
 
Join Date: Apr 2007
Location: WA
Posts: 173
Default Re: Adding blog content to my website
If you know PHP here are the steps:

1 -
Go ahead and download:
http://magpierss.sourceforge.net/

2 -
You will need to get the URL to your RSS feed.

3 -
You can use something like this on your home page:
PHP Code:
require('PATH TO MAGPIERSS/rss_fetch.inc');

$your_rss_feed_url = 'http://YOUR BLOG.wordpress.com/PATH TO RSS';
$rss = fetch_rss($your_rss_feed_url);
foreach ((array) $rss->items as $blog_post) {
   ?>
         <a href="<?php echo $blog_post['link']; ?>"><?php echo $blog_post['title']; ?></a><br />
<?php echo $blog_post['description']; ?><br /><br />
   <?php
}
You might need to tweek it a little but this is the general idea.
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote