Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add current term to Query Loop block filter for use on taxonomy archives #64354

Open
coreyworrell opened this issue Aug 7, 2024 · 1 comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.

Comments

@coreyworrell
Copy link
Contributor

coreyworrell commented Aug 7, 2024

What problem does this address?

When designing a taxonomy/term archive in the site editor, it is often necessary to separate out post types. This can now be down by adding multiple Query Loop blocks and setting the post type for each. But when it comes to restricting them to the current term, there is no way to do that dynamically.

What is your proposed solution?

When editing the Query Loop block, and then clicking in sidebar Filters > + > Taxonomies, each field should have the option for "Current term". This option should show on input focus (ultimately I think all terms should be shown as checkboxes, just like when adding Categories for a Post). Maybe this option only shows when editing a Taxonomy archive.

@coreyworrell coreyworrell added the [Type] Enhancement A suggestion for improvement. label Aug 7, 2024
@carlomanf
Copy link

#31272 and #39192 talk about a similar idea for the current post.

@carolinan carolinan added the [Block] Query Loop Affects the Query Loop Block label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants