Skip to content

Enhanced query filter blocks with new display types #25

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thomasnavarro
Copy link

This pull request enhances the query filter blocks for post types and taxonomies by adding support for multiple display types (dropdown, radio, and checkbox) and layout directions (vertical and horizontal). It also includes styling updates and adjusts rendering logic to accommodate the new features.

Enhancements to query filter blocks:

Functional improvements:

  • Added new attributes displayType and layoutDirection to allow customization of the display format (dropdown, radio, or checkbox) and layout orientation (vertical or horizontal) for both post type and taxonomy filters.

Styling updates:

  • Enhanced CSS to support the new layout options, including horizontal and vertical orientations for radio and checkbox groups.

Editor improvements:

  • Modified JavaScript files to integrate the new attributes into the block editor, allowing users to select display type and layout direction via the block settings panel.

Miscellaneous updates:

  • Updated asset files to reflect changes in dependencies and versions.
  • Added .wp-env.json configuration file to simplify local development setup.

Thomas Navarro added 2 commits June 7, 2025 22:40
… direction

- Updated package.json to include @wordpress/env as a dev dependency.
- Added new attributes `displayType` and `layoutDirection` to block.json for post-type and taxonomy blocks.
- Modified the Edit component for post-type and taxonomy blocks to include SelectControl for display type and ToggleGroupControl for layout direction.
- Implemented conditional rendering for select, radio, and checkbox inputs based on the selected display type.
- Updated render.php files for post-type and taxonomy blocks to handle new display type and layout direction attributes.
- Added styles for radio and checkbox groups in style-index.css to support vertical and horizontal layouts.
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.

1 participant