Using the_post_thumbnail do not rollback to original image if specified thumbnail does not exist

admin2025-06-04  45

We have a series of posts some do not have a defined thumbnail size (i.e. "small-featured"). Right now with the_post_thumbnail() if WordPress can not find that size it replaces it with the original size in a listing page we created.

Is it possible to request that if that exact size does not exist don't display an image instead of forcing a massive original image?

Thanks.

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

最新回复(0)