diff --git a/src/BlockTemplatesController.php b/src/BlockTemplatesController.php index 632cc85a58b..2f6387405c5 100644 --- a/src/BlockTemplatesController.php +++ b/src/BlockTemplatesController.php @@ -116,7 +116,7 @@ public function get_block_template_fallback( $template, $id, $template_type ) { return null; } - if ( count( $posts ) > 0 ) { + if ( count( $posts ) > 0 && 'archive-product' === $posts[0]->post_name ) { $template = _build_block_template_result_from_post( $posts[0] ); if ( ! is_wp_error( $template ) ) {