No need to exclude ID
This commit is contained in:
parent
3b3a83df8e
commit
fb8c54dcce
|
@ -37,7 +37,6 @@ $args = apply_filters( 'woocommerce_related_products_args', array(
|
|||
'posts_per_page' => $posts_per_page,
|
||||
'orderby' => $orderby,
|
||||
'post__in' => $related,
|
||||
'post__not_in' => array( $product->id ),
|
||||
) );
|
||||
|
||||
$products = new WP_Query( $args );
|
||||
|
|
Loading…
Reference in New Issue