[Plugin: Query Multiple Taxonomies] Dropdown Example
-
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 modifydropdowns.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>
https://www.ads-software.com/extend/plugins/query-multiple-taxonomies/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Query Multiple Taxonomies] Dropdown Example’ is closed to new replies.