Meta Box
Support Forum
Support › MB Views › Custom image sizeResolved
Hi!
How can I set a custom size when calling the Featured Image? I know that I can call 'medium', 'large' etc, but I need to set it to 500x500px
{{ mb.get_the_post_thumbnail( post.ID ) }}
Hi David,
You can register a new image size name then pass the size name to the function as the second argument. Please read more on WordPress documentation https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/ https://developer.wordpress.org/reference/functions/add_image_size/
{{ mb.get_the_post_thumbnail( post.ID, 'custom-size' ) }}
Great! Thank you!