Query block taxonomy filter does not work on frontend if taxonomy is not set to publicly_queryable #59257
Labels
[Block] Query Loop
Affects the Query Loop Block
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When
publicly_queryable
is set tofalse
for a custom taxonomy, it can still be selected in the query block filter criteria (and filters properly in the editor) but does not properly filter on the frontend.Ideally, filtering would remain working even when a taxonomy is set to not be
publicly_queryable
.Step-by-step reproduction instructions
publicly_queryable
set tofalse
, and apply it to a post type.You should notice the list of posts properly filtered in the editor, but once you save the page and view it on the frontend, all posts will appear.
This issue is also described in this comment from over a year ago: #41067 (comment)
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: