fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

shanfar basha

need product image gallery shortcode

Hakik Zaman

Hi shanfar,

Thanks for reaching out to us. Please add the following snippet inside your theme’s functions.php

add_shortcode('woovg_default_gallery', function(){
ob_start();
woocommerce_show_product_images();
return ob_get_clean();
});

Then use this shortcode[woovg_default_gallery]

Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.

Hope to hear from you soon.

Thank You