I have a Wordpress blog and I also have a website. I want to have section/box on my website that shows the latest blog entry (not link to it - the actual entry) . How would I do this in JavaScript? Thanks.
#1 Don't do it with Javascript or you get no SEO benefit for your efforts. I'd recommend you download simplepie and follow their example to place a single post. Then when it gets to the loop part use this instead $output = ''; $feeddata = $this->getFeed($url); if (is_array($feeddata) && isset($feeddata['items']) && count($feeddata['items']) > 0) { $item = $feeddata['items'][0]; $output = "<a href='{$item->data['link']['alternate'][0]}'>{$item->data['title']}</a>\n"; } PHP: and tweak $output to give the right info and echo it out.
I just noticed that RSS ignores links and formating, I need everything to be shown as it is on the blog... any ideas?