4, // You can change the number of related products 'columns' => 4, // You can change the number of columns 'orderby' => 'rand', // Random order ); $related_products = wc_get_related_products($product->get_id(), $args['posts_per_page'], $product->get_upsell_ids()); // Fetch the title from the widget settings $abcbiz_related_products_title = $this->get_settings('abcbiz_elementor_wc_product_related_title'); if ($related_products) : ?>