-
Notifications
You must be signed in to change notification settings - Fork 10
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
Example of Location from Custom Query blocks plugin #4
Comments
Btw adding a multi select drop down would make it possible to for instance using the above example selecting Posts and Pages then have drop downs for Posts and Pages show up. Then select multiple posts and pages. I made this issue some time ago: |
This is great, thanks @paaljoachim. I recently started using React Select in the plugin for multi-select drop downs, and will definitely be using it in the Location controls since there is no native Gutenberg component with similar functionality. There is also an Async option where you can load options asynchronously, which might be the best solution, especially for sites with hundreds of pages and post types. Going to start digging into this after I get version 1.8 out the door next week. |
I would suggest adding a PR to add the component into Gutenberg, as others will very likely have some good use out of it as well. |
Example. Testing the plugin: https://wordpress.org/plugins/custom-layouts/ It uses a multi select which can be seen here: Custom.Layouts.-.Post.Product.and.CPT.Grids.mp4 |
One very interesting issue: |
Closing this issue. Location functionality has been implemented in Block Visibility Pro. |
Hey Nick
Here is an example from the plugin: https://wordpress.org/plugins/post-type-archive-mapping/
Location-Queries-Custom-Posts.mp4
Query:
Post Type -> Taxonomy -> Terms
The text was updated successfully, but these errors were encountered: