WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
default options value and search button link (5 posts)

  1. bunchweb
    Member
    Posted 2 years ago #

    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/

  2. Henry
    Member
    Posted 2 years ago #

    I am also interested in setting a default option. Currently the default is blank. It would be nice to have something like "Please select..."

  3. Henry
    Member
    Posted 2 years ago #

    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.

  4. elizabethannedesigns
    Member
    Posted 2 years ago #

    thank you for this!

  5. Jonathandejong
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic