Hello, I have a website page, in PHP. Is there a way I can display the title of my latest blog post on that php home page and have a link to it. I need it to update everytime something is added to the blog. Pleaseeee Help. Thanks.
create a widget and put your feed in that widget. place that widget in your site. you can get the widgets at many blog widget sites. http://www.widgetbox.com
I'm not looking to pay for it, was wondering if anyone knew the code to do it. Ive seen it on other sites, just wanted to know if anyone else knew it. Thanks
Your blog presumably has an XML-based RSS feed. If that's the case, you simply need to parse the XML on your other site. If it's on a different domain then this is a little bit trickier, but it's still very straightforward php. Try to do it yourself. If you're struggling, poke around in google for a php XML parser. If you're still struggling, ask again and we'll help you out.
Hey, Ive had a look on google, but I really dont understand any of it Can someone please write a small bit of code to point me in the right direction? :S Thanks, Jonathan
Try using Magpie RSS. Once you've included the Magpie RSS script, there's a function (fetch_rss($url) from memory) which will return the feed XML as an array. It could be more efficient as you only need the title and URL of one post rather than all the data, but this will save you some coding.