EyeStorm Studio

Standards and Browser Aware Web Development

Standards and Browser Aware Web Development

Eyestorm is the online studio of David Wranovics, freelance web developer, owner and operator of the forum skin retail stores, ForumMonkeys and vBmode, founder of the original, now umbrella parent company, NetAtom COM. David supplements his larger projects with development partners he has met over the decade he has spent in web development.


Archive for October, 2007

Wordpress Loop on Non-Wordpress Pages

Friday, October 19th, 2007

I was looking for an easy code snippet to put the latest blog posts on the EyeStorm index page using the Wordpress loop. I remember it took me quite a bit of searching, that I had to keep trying different keyword combinations until I finally found something to help me. Today, I wanted to change the sort order of the posts and no matter if I changed it from ASC to DESC, nothing happened. I realized the code I had pilfered had some syntax errors. Having some PHP/MySQL knowledge, I fixed them and spent another ten minutes looking for that post again so I could add a comment with the syntax fix to no avail. So, I decided I would post this in case other people are looking for the same thing and having problems finding it.

Now that I’ve bored you with the short story, here’s the code.

(more…)