Support » Plugin: Query Multiple Taxonomies » [Plugin: Query Multiple Taxonomies] default options value and search button link

  • Hi,

    Thanks for the great plugin, just what I needed. Now I am trying to, of course, mess with what’s already perfectly fine.

    Two questions:

    1. Is it possible to insert a default value into the dropdown menus like: “Please select (taxonomy name here)”

    2. I noticed when nothing is selected and a the search button is clicked it automatically shows the archives loop for regular posts. Is it possible to select a certain page show up instead? Like the search page I’ve created with my dropdown widget menu for instance.

    Thanks for any advice!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also interested in setting a default option. Currently the default is blank. It would be nice to have something like “Please select…”

    I posted too soon. After looking at the code you can easily do this.

    In dropdowns.html change the following:

    <select class="taxonomy-search-options" name="{{name}}">
    			<option></option>
    			{{{options}}}
    		</select>

    To

    <select class="taxonomy-search-options" name="{{name}}">
    			<option value="">All {{title}}</option>
    			{{{options}}}
    		</select>

    I really like how the plugin author has used Mustache with WordPress. You can easily edit the code without much need for knowledge of PHP.

    elizabethannedesigns

    (@elizabethannedesigns)

    thank you for this!

    Jonathandejong

    (@jonathandejong)

    there’s a major issue with this tho.. If you don’t select anything and hit the button you’ll get an 404 error since it tries to filter on those default values

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Query Multiple Taxonomies] default options value and search button link’ is closed to new replies.