Mar 27 2008
array_multisort is your friend
More and more these days I’ve been using Wordpress as the base for web projects. The code base is fantastic, elegant, and simple, and they care about web standards and proper XHTML output. Plugins and themes are easy to write, and the documentation is excellent.
So, for sites that lend themselves to a certain blogginess – sites that are mainly content, updated regularly, and where the content falls within a few different categories – it’s a good fit. You can update a core code base from the maintainers, while your plugins and themes for that site remain in separate folders and that’s the only stuff you have to maintain.
But, sometimes you need to do non-bloggy stuff. For example, on a site for media lawyers I’m working on, we want a list of all the member lawyers. These lawyers will be able to log on and post things in a contributor or author role, and so they all have accounts on the site. It seemed natural, then, to expand the information stored for each user and use the accounts to generate the member list.