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 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 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 Comments

  1. Posted February 28, 2007 at 9:15 pm | Permalink

    That sounds useful.  I could use a Plug-In like you describe, I think.

  2. Posted March 1, 2007 at 5:27 am | Permalink

    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.

  3. Posted March 1, 2007 at 8:14 pm | Permalink

    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’)”

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information relevant to your comment.

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Also, there's only one rule when commenting - be polite. Anyone who violates this rule will have their comment deleted