-
Notifications
You must be signed in to change notification settings - Fork 313
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
Facet by post type #3473
Facet by post type #3473
Conversation
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.
@oscarssanchez we will need to make some changes before merging this one. I was also expecting at least unit tests covering all the new filters. Do you think that would be possible? If not we can regroup and I can take this one over. We'll also need e2e tests for it.
Instead of `ep_post_type_filter_post_type`, changing it to be `ep_post_type_filter` instead
Co-authored-by: Burhan Nasir <burhandodhy@users.noreply.github.com>
I see the changelog that this was added in 4.6.0, but i don't see the facet widget or understand how to test this. Is this only in Instant Results? |
Hi @JiveDig, Facet by Post Type is only available as a Block when using the block editor. If you're using something like Classic Widgets then it will not be available, as the feature has not been implemented as a Widget. |
Description of the Change
This PR adds a facet by post type block widget similar to our Facet by Meta/Taxonomy/Meta Range ones.
Closes #3461
How to test the Change
1.- Have a couple of post types
2.- Add a facet by post type block
3.- Go to the front end.
4.- Faceting by post type should be applied
Changelog Entry
Credits
Props @oscarssanchez
Checklist: