Query Loop Block in Widget Areas #46132
Labels
Needs Technical Feedback
Needs testing from a developer perspective.
[Package] Edit Widgets
/packages/edit-widgets
What problem does this address?
I am working on a site that uses a classic theme, but we're trying to use the block editor in every place possible. I would like to include a list of posts from a custom post type in a widget area, but haven't been able to make this work with features available in WordPress core 6.1.1
I am unable to add a
core/query
block to a widget area. I have not been able to find a specific piece of code that prevents this, but the query related blocks are not listed under the theme category when I try to add a block.I could not find documentation about why this is the case. The closest I found was a support ticket on WordPress.org that mentioned pagination blocks were not available in widget areas.
What is your proposed solution?
It would be helpful for my transition from classic themes to full site editing if widget areas could contain
core/query
without pagination or ifcore/latest-posts
supported custom post types.The text was updated successfully, but these errors were encountered: