The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Limiting The Wordpress Posts

Hi there,

Okay, after a bit of redesign of my portfolio site, I've decided to include the latest blog posts. I found a thread via Google which provided the following link which pulls out the latest posts from the RSS Feed of my blog.

Currently, the RSS Feed itself is pulling 10 out of the 15 posts currently in the blog database. However, I want to limit this to 3-5 so that it can be easily displayed on my site.

Below is the link in question which is an exact copy of the code I currently have running.

Sorry for such a late reply. Thank you so much for the code, it's now working perfectly - and also for your advice about doctypes (haha oops!).

One last thing I want to do is format them so that the posts are in separate divs next to each other. Please could you tell me how I could separate the blog posts into different sections? (e.g. at the moment they are simply a list).

If possible, I would also like to grab the date from the posts and display this alongside the other data already gathered.