By default, when using WooCommerce to upload products in WordPress, the product gallery displays 4 images. If you want to display more product images in a row, you can add the following code to your theme's functions file.
// 调整产品图册单排展示数量 add_filter( 'woocommerce_product_thumbnails_columns', create_function( '', 'return 4;' ) );
Just change the 4 in the above code to the number of images you want to display.
After modification, different themes may require additional CSS adjustments. There is no universal code for this; it needs to be adjusted based on your website's actual situation.