Tag Filters

I’ve a feature request for all you php ninjas out there, particularly those of you who develop plugins that do strange and wonderful things with tagging:

How about making the ability to tag posts in WordPress a little bit more powerful? For instance, I use “Ultimate Tag Warrior”:http://www.neato.co.nz/ultimate-tag-warrior/ to create a site index here, and it’s nice to be able to click on a particular tag and see all of the entries that fall under it.

Here’s the thing, though – I’d like to see it be possible to filter down still further into those entries. Instead of, for instance, being able to see the entries that fall under speculative fiction only, I’d like to be able to add more tag filters and see all the entries that have been tagged as _both_ speculative fiction and tv shows, or to be able to add still more filters so that I could see all entries that fall under speculative fiction, tv, shows, and heroes, if I wanted to get that specific. It would also be cool to be able to filter by an ‘OR’ command, so that I could sift through all my entries and see all posts that have been tagged as _either_ science fiction _or_ fantasy, for a larger list. I believe that this could easily be done using AJAX to add and remove tags at will. “bbPress”:http://bbpress.org already has something like this in place for individual posts, so I don’t think it would require much effort to modify that script slightly to make it do more and go further.

So, any javascript/php geeks out there looking for a new challenge to expand the functionality of some of useful tools to make them even _more_ useful?

3 thoughts on “Tag Filters”

  1. I put a feature request in to UTW’s author and the response I got back was – you can already sort of do this by manually adjusting the URL in the address with a ‘+ (new tag)’. Apparently doing the whole ‘and/or’ thing at the click of a mouse is too complicated to code. Makes me wish I knew more about php and javascript so that I could take a stab at it myself.

  2. yeah, i’d have to..
    1) get the code
    2) have the time
    3) feel altruistic
    it’s really rather easy tho. just pull the SQL query into a drop-down or add a text box on the top of the page & parse by spaces into the pre-existing SQL statement so that the “where” clause would have something like: “tag like ‘$var’ and (tag like ‘var2’ or tag like ‘var3’)”

Have anything to add to the conversation?