Multipost Query Loop
add_filter( ‘generateblocks_query_loop_args’, function( $query_args, $attributes ) { $attributesArray = array_column($attributes[‘htmlAttributes’], ‘value’, ‘attribute’); if (isset($attributesArray[‘data-posts’])) { $posts = explode(‘,’, $attributesArray[‘data-posts’]) ?? []; return array_merge( $query_args, array( ‘post_type’ => $posts, ) ); } return $query_args; }, 10, 2 );Continue reading