<?php
/******************************************************************************/
/* WooCommerce Number of Related Products *************************************/
/******************************************************************************/
function woocommerce_output_related_products() {
$atts = array(
'posts_per_page' => '6',
'orderby' => 'rand'
);
woocommerce_related_products($atts);
}