Allow multiple choices using checkboxes - #20
Conversation
Using checkbox setting user can select multiple choices in the filter. Closes humanmade#13.
|
Tested it and it works like a charm. Would love to see this merged. :) |
|
Thanks for this @samikeijonen, and sorry it sat open so long. Closing it because multiple-choice filtering has since shipped — it landed on How to use itOn the Taxonomy Filter block (and the Post Type Filter), in the block sidebar:
In markup that's the <!-- wp:query-filter/taxonomy {"taxonomy":"category","displayType":"checkbox","layoutDirection":"horizontal"} /-->Selected terms are joined into a single query var as a comma-separated slug list ( Two related things from the same area that also shipped, in case they're useful: Your PR is the reason this was prioritised, so thank you — the eventual implementation just took a different route through the display-type attribute rather than a dedicated multiple-choice mode. #22 is still open and wanted; I've commented separately there. Generated by Claude Code |
|
@roborourke Great that it landed! |
Using checkbox setting user can select multiple choices in the filter.
Closes #13.