WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
Dropdown Example (7 posts)

  1. netzschrauber
    Member
    Posted 2 years ago #

    Hi all, this plugin is exactly that what I was looking for. Many thanks to scribu!

    I have modified the dropdowns.html and want to share the code in some few lines:

    • Put a "Please choose: ...." into HTML selector
    • Add some CSS to HTML selectors to keep it more compact
    • Add "onChange" event handler to start searching if one dropdown field has been changed

    You simply have to copy the three files in .../wp-content/plugins/query-multiple-taxonomies/templates folder to .../wp-content/themes/<your-theme>/qmt-templates and modify dropdowns.html as follows:

    form method="get" action="{{base-url}}" class="taxonomy-drilldown-dropdowns">
    {{#taxonomy}}
    <ul>
    <li>
    <select name="{{name}}" style="width:90%; padding=2px; margin:0px;" onChange="this.form.submit()">
    <option class="level-0" value="">Choose: {{title}}...</option>
    {{{options}}}
    </select>
    </li>
    {{/taxonomy}}
    <li>
    <a class="taxonomy-drilldown-reset" href="{{reset-url}}">{{reset-text}}</a>
    </li>
    </ul>
    </form>

    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

  2. 3x7
    Member
    Posted 2 years ago #

    Great!
    I was looking for this solution (auto submit).. now I just need more style, like to remove bullets in front??

    Here is an update which put the reset function into dropdown like "Select all" or anything else ... it can be also used as "{{reset-text}} all" instead of "select all"

    <form method="get" action="{{base-url}}" class="taxonomy-drilldown-dropdowns">
    {{#taxonomy}}
    
    <ul>
    <li>
    <select name="{{name}}" style="width:90%; padding=2px; margin:0px;" onChange="this.form.submit()">
    <option class="level-0" value="">Choose {{title}}...</option>
    <option class="level-1" value="">Select All <a href="{{reset-url}}"></a></option>
    {{{options}}}
    </select>
    </li>
    {{/taxonomy}}
    
    <li>
    </li>
    </ul>
    </form>

    I'll post my item-list.html with my modifications...

  3. 3x7
    Member
    Posted 2 years ago #

    I'm also looking for solution to modify list to leave Categories list open all the time so I could shuffle thru categories but still keep the selected custom taxonomies...

    My first guess would be that it should "reset categories" before selecting new... but still then it would show only collapsed ones, this would work only for those which appear with selected one...

    Anybody?

  4. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Please don't post the same message on multiple threads. Once is enough.

  5. 3x7
    Member
    Posted 2 years ago #

    I know, but I realized that last post fits more under "list-dorpdown example" post...

    Since you're around here could you help me out with this, and give me some hint how could I achieve this?

    thanks!

  6. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    From the readme:

    I do not offer any support for this plugin (free or paid).

    Sorry.

  7. 3x7
    Member
    Posted 2 years ago #

    fair enough. Hopefully somebody will.

    thanks anyway!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic