Does it irritate the living crap out of you when you need to select more than one category in a multi-select form? You have to put your beer down and fumble around with the keyboard and remember is it alt or shift or .... Dang it, now you’ve spilled your beer.
Such is the difficult life of the geek. Well, there’s a nifty bit of javascripting by Kae (a wordpress user- we should recruit him) that allows you to have multi-selects like the one pictured. Now you can hold onto your beer and select all of the categories and subcategories you want. It’s been tested on the standalone publish form and there’s no real reason I can see that it wouldn’t work in the backend.
To achieve the desired effect, simply download the javascript from here, then you can either call it as an external javascript, or put it in the head of your template- REMEMBERING to put: before the script starts and: </script> after it ends; or- stick it in its own template (surrounded by the stuff) and embed it.
One way to do this is to put it into a global variable and then call that global variable in the head.
Nothing easier!
Category:Tips Category:Templates
