-
Notifications
You must be signed in to change notification settings - Fork 7
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
Query Filters: Add taxonomy term counts #228
Conversation
19afbd1
to
c388405
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, works on categories for me.
I was expecting numbers on the other filters (tags and flavors) too though. I think the same confusion would exist for them. Any reason not to?
c388405
to
1a365ad
Compare
source/wp-content/themes/wporg-showcase-2022/inc/block-config.php
Outdated
Show resolved
Hide resolved
|
||
/** | ||
* Get an array of option labels. | ||
* Each label is a string formatted as 'name (count)'. e.g, Business (30). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #225
This PR adds taxonomy term counts to the filter dropdowns.