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

Example of Location from Custom Query blocks plugin #4

Closed
paaljoachim opened this issue Apr 9, 2021 · 6 comments
Closed

Example of Location from Custom Query blocks plugin #4

paaljoachim opened this issue Apr 9, 2021 · 6 comments
Assignees

Comments

@paaljoachim
Copy link

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

@paaljoachim
Copy link
Author

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:
Using multi select in a drop down?
WordPress/gutenberg#1044

@ndiego
Copy link
Owner

ndiego commented Apr 10, 2021

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.

@paaljoachim
Copy link
Author

paaljoachim commented Apr 10, 2021

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.

@paaljoachim
Copy link
Author

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

@paaljoachim
Copy link
Author

One very interesting issue:
Query Block - more advanced / multi select query options
WordPress/gutenberg#30706

@ndiego
Copy link
Owner

ndiego commented Jul 21, 2021

Closing this issue. Location functionality has been implemented in Block Visibility Pro.

@ndiego ndiego closed this as completed Jul 21, 2021
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

No branches or pull requests

2 participants