No need to exclude ID

This commit is contained in:
Mike Jolley 2016-10-17 16:00:43 +01:00
parent 3b3a83df8e
commit fb8c54dcce
1 changed files with 0 additions and 1 deletions

View File

@ -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 );