The WordPress Query Loop Block is a powerful block, enabling authors to curate blog content with fine-grained control over the layout. However, it's often a requirement that site editors want to pick the specific posts that appear in these content grids and lists. This WordPress plugin adds a block variation of the Query Loop which provides a content picker, allowing editors to choose the exact posts they want to display, while still leveraging the power of the layout control which comes with the Query Loop Block.
This plugin extends the core Query Loop block, and as such
- Like the standard Query Loop block, this is limited to one post type - the post type in the curation search results will be determined by the post type selected in the Query Loop settings.
- Posts are not backfilled - this uses the
post__in
WP_Query parameter, meaning any posts_per_page argument exceeding the number of selected posts will be ignored. Posts will be limited to the specific posts selected.
Visit https://wordpress.org/plugins/curated-query-loop/ to download the plugin.
- Clone this repository into
wp-content/plugins
- Install composer dependencies with
composer install
- Install NPM dependencies with
npm i
and build plugin usingnpm run build
. Node 18+ recommended. - This ships with
@wordpress/env
installed. If you have Docker installed and running, you can simply runnpm run env:start
to spin up a local environment with the plugin activated.