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

Facet by post type #3473

Merged
merged 11 commits into from
Jun 5, 2023
Merged

Facet by post type #3473

merged 11 commits into from
Jun 5, 2023

Conversation

oscarssanchez
Copy link
Contributor

@oscarssanchez oscarssanchez commented May 26, 2023

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

Added - Facet by Post type

Credits

Props @oscarssanchez

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link
Member

@felipeelia felipeelia left a 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
felipeelia and others added 2 commits June 5, 2023 08:57
Co-authored-by: Burhan Nasir <burhandodhy@users.noreply.github.com>
burhandodhy
burhandodhy previously approved these changes Jun 5, 2023
@felipeelia felipeelia merged commit ac04158 into develop Jun 5, 2023
@felipeelia felipeelia deleted the feature/facet-post-type-ir branch June 5, 2023 20:51
@JiveDig
Copy link
Contributor

JiveDig commented Jun 28, 2023

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?

@JakePT
Copy link
Contributor

JakePT commented Jun 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Post Type Facets
5 participants