You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Post Categories block] Include Support for Custom Taxonomies #41541
The Query Block lets you select the custom post type you want to query... but the way the Post Categories block works at the moment, unless that CPT is associated with the default taxonomies (categories and tags) it will show a "No categories message".
This is not a bug in the Post Categories itself, but it can be confusing for users who expect the Post Categories block to just list all/any relevant terms coming from custom taxonomies.
What is your proposed solution?
My suggestion would be to add a dropdown in the Post Categories block to select which taxonomy we want to show terms for.
Hey, @adrianoabreux. I did a quick text to a associate a custom taxonomy to the default (core) pages and the Taxonomy Terms List Block does seem to list the terms correctly.
Since the different taxonomies are variations of the post term block, would it make sense to display them as well, variations, instead of a sidebar option?
Aside: It should be possible to transform to a different variation.
would it make sense to display them as well, variations, instead of a sidebar option?
I am not sure what you mean here @carolinan. What would this look like? Are you referring to having a single Post Taxonomy block and use it for categories, tags and custom taxonomies?
It is already a single block. I meant if you place a post categories block, it would have an option further up in the sidebar,
just like if you place a group block, you can choose between group, stack, row:
And custom taxonomies would have some sort of generic icon.
Thank you for the details @carolinan. That could work too, sure. My goal when I opened this issue was not so much to pursue any specific path, but to address the fact that the current state of FSE does not offer any way to include/list custom taxonomies.
I have noticed this issue is still reproducible. I am not sure if this is a regression of of if it was never fixed (#39837 says it was merged, though).
Activity
mrfoxtalbot commentedon Jun 4, 2022
I have found a block that already does exactly what I described: Taxonomy Terms List Block.
adrianoabreux commentedon Jun 4, 2022
@mrfoxtalbot did the plugin you mentioned works for pages? I tried adding it to a page query loop, but it does not show my custom "negócio" taxonomy.
mrfoxtalbot commentedon Jun 4, 2022
Hey, @adrianoabreux. I did a quick text to a associate a custom taxonomy to the default (core) pages and the Taxonomy Terms List Block does seem to list the terms correctly.
I hope that helps!
carolinan commentedon Jun 9, 2022
Since the different taxonomies are variations of the post term block, would it make sense to display them as well, variations, instead of a sidebar option?
Aside: It should be possible to transform to a different variation.
mrfoxtalbot commentedon Jun 9, 2022
I am not sure what you mean here @carolinan. What would this look like? Are you referring to having a single Post Taxonomy block and use it for categories, tags and custom taxonomies?
Thank you!
carolinan commentedon Jun 9, 2022
It is already a single block. I meant if you place a post categories block, it would have an option further up in the sidebar,
just like if you place a group block, you can choose between group, stack, row:
And custom taxonomies would have some sort of generic icon.
mrfoxtalbot commentedon Jun 13, 2022
Thank you for the details @carolinan. That could work too, sure. My goal when I opened this issue was not so much to pursue any specific path, but to address the fact that the current state of FSE does not offer any way to include/list custom taxonomies.
carolinan commentedon Jun 13, 2022
It does, but it is a recent change: #39837
mrfoxtalbot commentedon Jun 13, 2022
I wasn't aware of that PR. Thanks again @carolinan. We. An mark this as solved, then, I think.
mrfoxtalbot commentedon Jun 13, 2022
There's a fix on its way @adrianoabreux, please check #39837
mrfoxtalbot commentedon Dec 19, 2024
I have noticed this issue is still reproducible. I am not sure if this is a regression of of if it was never fixed (#39837 says it was merged, though).
I am going to reopen this.
Mamaduka commentedon May 1, 2025
Closing this as resolved. The block variations can be switched for available taxonomies.
Screenshot