On your WordPress website if you are using WooCommerce for ecommerce you may want to update the number of upsells listed on the product pages on there. If you want to do that without a plugin you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to it.
Update number of product upsells on product page
/** * Update number of upsells on product pages * * @author WPSnacks.com * @link https://www.wpsnacks.com */ if ( ! function_exists( 'woocommerce_output_upsells' ) ) { function woocommerce_output_upsells() { woocommerce_upsell_display( #,# ); } } remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_upsells', 15 );
Then you can replace the # and # with the first # the number of products and the second # is the number of rows on there. Now if that works for you it would update the number of product upsells per row on WooCommerce product pages on there.