diff --git a/stewart/inc/block-patterns.php b/stewart/inc/block-patterns.php index 73c473119..05690b8aa 100644 --- a/stewart/inc/block-patterns.php +++ b/stewart/inc/block-patterns.php @@ -14,10 +14,11 @@ */ function stewart_register_block_patterns() { $block_pattern_categories = array( - 'footer' => array( 'label' => __( 'Footers', 'stewart' ) ), - 'header' => array( 'label' => __( 'Headers', 'stewart' ) ), - 'pages' => array( 'label' => __( 'Pages', 'stewart' ) ), - 'sidebar' => array( 'label' => __( 'Sidebars', 'stewart' ) ), + 'footer' => array( 'label' => __( 'Footers', 'stewart' ) ), + 'header' => array( 'label' => __( 'Headers', 'stewart' ) ), + 'pages' => array( 'label' => __( 'Pages', 'stewart' ) ), + 'sidebar' => array( 'label' => __( 'Sidebars', 'stewart' ) ), + 'query' => array( 'label' => __( 'Query', 'stewart' ) ), ); /** @@ -60,6 +61,7 @@ function stewart_register_block_patterns() { 'sidebar-introduction', 'sidebar-blogging', 'sidebar-categories-tags', + 'posts-list', ); /** diff --git a/stewart/inc/patterns/posts-list.php b/stewart/inc/patterns/posts-list.php new file mode 100644 index 000000000..8cd2ace84 --- /dev/null +++ b/stewart/inc/patterns/posts-list.php @@ -0,0 +1,31 @@ + __( 'Posts list', 'stewart' ), + 'categories' => array( 'query' ), + 'content' => ' +