Search by

wenprise / block-modules

iwillhappy1314

WordPress Post Query Block

dev-master 2026-08-05 15:15 UTC

This package is auto-updated.

Last update: 2026-09-05 15:29:40 UTC


README

Give an array of WP_Query args, a template name and render to a HTML string.

Usage

$block = new \WenpriseBlocksModules\Block();

$block->set_query([
    'post_type' => 'post',
]);

$block->set_template('post');

echo $block;