Quick comment: use the code version Michael’s linked to (the txt file on his site) rather than the code in here — it doesn’t work right. On the other hand, the code on his site works beautifully. Thanks, Michael!
Chad: you ROCK. I was >thisclose< to deleting WordPress and trying something that’s overkill like php-nuke. Thank you very much for your suggestion. 🙂