Query Loop Parameters
-
Hi There!
It would be awesome to have an “AND” option added to the taxonomies selectors in the Query Loop parameters.
Right now, it operates on an “OR” basis, and looking at the WP Query class code, it should be simple to swap the comma delimiter with a plus sign, then UI-wise, have “AND/OR” buttons that function as a toggle defaulted to “OR” as that’s the functionality that you seem to expect most people to need.
Example Use Case: A music site wants to create a page dedicated to a specific rock guitarist. They have a section talking about rock guitars and want to include their latest posts about rock guitars. They create a Query Loop and specify the tags “rock” and “guitar.”
With the current behavior, the Query Loop will just output the latest articles about rock OR guitars, but not articles that are tagged specifically with both the “rock” and “guitar” tags. So, the latest article titled “Top 10 Rock Drummers of All Time” is output because it is tagged “rock.”
Hopefully, this makes sense and seems like natural functionality to include.
Even better, if there is a way this is already possible, I’m happy to be wrong! ??
I’m a happy GeneratePress Pro user and I’d also be interested in seeing side-by-side comparisons of what is possible between GenerateBlocks and GenerateBlocks Pro.
- The topic ‘Query Loop Parameters’ is closed to new replies.