May 2013

"What's the Worst Thing That Could Happen?" – May 30, 2013

For those of you who know me, you know I find it useful to ask the question, "What's the worst that can happen?" when thinking about whether to do something or not - particularly when it comes to a matter of walking by faith in a particular situation.  I find that the answer to that question is usually, "I could get embarrassed", or "I might lose some money", or other such things that don't matter all that much.  Every once in a while the worst thing that could happen is a bigger deal, but I find it seldom is.

I was amused to see the question asked in the Dilbert comic strip the other day.

Dilbert 5/28/2013

Archive Page for Wordpress Blogs – May 14, 2013 (read more)

A customer wanted a "site index" page for their Wordpress site, which in blog terms means an "archive" page.  You can use the wp_get_archives() function, but that doesn't give you much in the way of customization.  I thought about using the "format=custom" parameter, and try to parse the information afterwards, but that seemed like a pain, so I threw away that function call, in favor of calling get_posts, and then doing all of the setup myself.

Here is what I ended up with (note, I'm skipping the template specific stuff, you'll want to include a header, and an appropriate div, and your sidebar(s), etc. There are many sites on the internet that will show you how to create a generic archives.php template)