WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Picker
query string passes term name, not slug (2 posts)

  1. anmari
    Member
    Posted 3 years ago #

    Hi Kate, me again

    Just comparing a number of plugins that query taxonomies.

    With yours, it looks like you need to change line 109 to use the term slug, rather than the term name. (If slug and name the same it will not matter, but when they are different, of course it does.... )

    $option_name = $taxonomy->name.'='.$term->slug;

    as comparison to your plugin, see http://wordpress.org/extend/plugins/query-multiple-taxonomies/

    I think yours would also be more helpful if it remembered (maybe from the query string) the values chosen already and then allowed the user to progressively drill down.

    regards,

    http://wordpress.org/extend/plugins/taxonomy-picker/

  2. KatePhiz
    Member
    Plugin Author

    Posted 3 years ago #

    I can see that it might be useful to use the slug as an alternative. That is a fairly minor change so I'll get that done. Thanks for the suggestion.

    Remembering the query for drill down is more difficult as the plugin is designed to take the user to the standard search form for the theme in use. By that time, the form details are no longer available but I could build something from the URI. The truth is that until we get WP3.1 which (hopefully) will handle queries across multiple custom taxonomies that drill down isn't very useful. It's something I do want on my own site and will add to the plugin, I just think I'm better waitaing a few months.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic