Wordpress Loop on Non-Wordpress Pages
Friday, October 19th, 2007I 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.