0

I want to use a product thumbnail completely different than the product image. I've tried to search on google but all solutions lead to just customization of thumbnail sizes.

0

There's several ways you can do it. My suggestion would be to create a custom meta box that either accepts a either the image url or you pass the id of the image you want to use. Then within the template you can use the wp_get_attachement_image($args) function.

https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/ https://developer.wordpress.org/reference/functions/wp_get_attachment_image/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.