Dashboard: Add Filter by Taxonomy
See original GitHub issueSummary
This issue will add a new filter option to the Dashboard to filter Stories, based on hierarchical taxonomy.
References
UX: Still in progress, but this issue’s implementation can be started prior to having fleshed out comps for this. We can mimic the experience described below.
For an example of what this could look like, please see All Stories
in the default WordPress view for what this means. The functionality between these two spaces should be the same: a dropdown, similar to the Author in the screenshot seen above.
Alternatives Considered
No alternatives.
Acceptance Criteria
Does this epic have any performance impact?
This should not impact performance.
Does this epic have telemetry?
We could capture usage of this dropdown via telemetry.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Filtering Posts by Taxonomies in the Dashboard - GenerateWP
In this quick tutorial, we will learn how to add new filters (dropdowns) to any Post Type screen in order to filter content...
Read more >Filter Custom Post Types by Taxonomy in WP Admin Dashboard
Filter CPTs by a linked custom Taxonomy in the WP Admin Dashboard is possible with restrict_manage_posts. Filter Cpt By Custom Taxonomy.
Read more >Show filter for custom taxonomy in admin column
I checked “show in admin column” for custome taxonomy so I can see it in admin column table. But is there any way...
Read more >How to filter posts by taxonomies in the WordPress admin area
To do that, you need to install a plugin called Admin Taxonomy Filter. Go to Plugins → Add New and search for Admin...
Read more >Page category filter in admin dashboard
If you really want to add a filter, you can add a select (for exemple) that you will write by using the hook...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For context, the right
All Categories
labels will be provided in the REST API response underlabels.allitems
. See how thestory-editor
package usestaxonomy.labels.[...]
everywhere as well.There’s no need to provide this label manually (and string concatenation like “All %s” should be avoided anyway)
@spacedmonkey Totally understand what you mean and excellent point, and I think that’s something that wasn’t clear for us picking up on the prior work slated by the previous team. At first, we thought that we were supposed to be supporting Categories (as seen in that dropdown), and then the ask was that we include All Taxonomies. Your point is right: if you had more than one same-named custom taxonomy, it would show up similarly in the dropdown.
But as far as I’m aware, even with adding custom taxonomies within
Stories
and that similar page view, that there’s not a space that actually shows any dropdowns for custom taxonomies, not even within the WP list style page for stories as seen below in my screenshot.(Note: this one Story has two custom taxonomies assigned to it and one category, but there’s no indication or view to know such within this page, and no category dropdown)
But I would have hoped this would have come up with initial conversations about designing and planning this work prior to our start implementing it. Our team is pretty fresh at this work, so it’s harder for us to know (especially since our initial thought was that we were supporting categories) what’s expected if it isn’t clearly defined and scoped. If there are gaps between what’s expected, those gaps will be larger for us as a team with fresh eyes coming into this.