customization - I want to use a product thumbnail completely different than the product image

admin2025-06-05  1

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.

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.

Share Improve this question asked Dec 7, 2018 at 22:42 user2233574user2233574 101
Add a comment  | 

1 Answer 1

Reset to default 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/plugins/metadata/custom-meta-boxes/ https://developer.wordpress/reference/functions/wp_get_attachment_image/

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749117099a316508.html

最新回复(0)