diff --git a/src/BlockTypes/RelatedProducts.php b/src/BlockTypes/RelatedProducts.php index ff3d833a54b..4a141ccc6a3 100644 --- a/src/BlockTypes/RelatedProducts.php +++ b/src/BlockTypes/RelatedProducts.php @@ -93,9 +93,10 @@ public function build_query( $query ) { } return array( - 'post_type' => 'product', - 'post__in' => $related_products_ids, - 'post_status' => 'publish', + 'post_type' => 'product', + 'post__in' => $related_products_ids, + 'post_status' => 'publish', + 'posts_per_page' => $query['posts_per_page'], ); }