I've got a big query that queries one
post_type with all different kinds of filters. Values are taken from
- Im adding 3 different checkboxes to the
<form>which can be used as
post_typetoggle - this means that you can query only one
post_typeof the three, two of them or all at once
post_typehas it's own inputs that I show / hide with jQuery
post_typeinputs should only affect / filter its own
- All the results must be displayed in same list
My question is: how to query different
post_types when each have its own arguments?
Thoughts after few days of thinking about this:
Three different queries (poor, poor performance) and compile multiple queries into one loop?
While Im having tons of query arguments, it should drastically speed up query because there's pretty narrow scope, at least my logic says it and three different queries shouldn't be that bad even if each have thousands of posts?
My only concern is that user can also query without filling any inputs which means that all three queries are quering ALL the posts.
post_typesseems impossible - you cannot use different
post_typesusing conditional logic in same query, right?