WordPress.org

Forums

Query Multiple Taxonomies
show posts the match ALL the checkboxes rather than ANY check box (7 posts)

  1. jackama
    Member
    Posted 2 years ago #

    Basically, i would like to have the filter sets show only posts that match all the the criteria checked. rather than posts that match any of the checked boxes.

    any way to do this?

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

  2. verduyckt
    Member
    Posted 2 years ago #

    Same here.
    Now, the only way to do this is through a combination of 1 category and 1 tag in the dropdown menu of the widget. Sort of.
    Me too would like a script that filters on (category 1) AND (category 2) rather than (category 1) OR (category 2).
    Preferrably on more than 2 criteria too if possible.
    Example: show me all the posts from category 'hotels' AND category 'city' AND category '5 stars', where ALL of the 3 criteria are met (so only posts with '5 star' 'hotels' from 'city' should show up)

  3. jjanicik
    Member
    Posted 2 years ago #

    I too would love to see this feature added.

    Any possibilities of this happening?

  4. Giacomo79
    Member
    Posted 2 years ago #

    Thanks for lovely plugin!
    I also would have the same necessity.
    I would like to use this plugin for a real estate, i would like to have the filter sets show only posts that match all the the criteria checked.
    Could be possible to have also a combination of dropdown menu and checkbox? It's more usable for example in real estate theme.

  5. iamwillwatson
    Member
    Posted 2 years ago #

    I would also very much like this to be implemented!!

  6. jluisfg
    Member
    Posted 2 years ago #

    Hey,

    I found a temporary solution to this.

    Go to the template files and in my case I was using dropdowns so the code is this.

    <form method="get" action="{{base-url}}" class="">
    		<div class="col-1-6">
    			<span class="opensans">Buscar mascotas</span>
    		</div>
    		{{#taxonomy}}
    		<div class="col-1-6">
    			<select data-placeholder="{{{name}}}" id="qmt-{{name}}" name="{{name}}" class="classy {{name}}" style="width:100%;" tabindex="1">
    				<option value=''>{{name}}</option>
    				{{{term-list}}}
    			</select>
    		</div>
    		{{/taxonomy}}
    
    	<div class="col-1-6">
    		<input type="submit" value="{{submit-text}}" id="submitit" />
    	</div>
    </form>

    What I did was remove the value for the option, that way the default option now has the "Any" text but has no value.

    Hope they can update the plugin soon but this works for me now.

    Let me know if it helped you!

  7. thatwastaxing
    Member
    Posted 2 years ago #

    I must be missing something here because this is how QMT works out of the box for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Multiple Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.