How to return custom thumbnail size of featured image in Pods

910 Views Asked by At

I've registered several custom thumbnail sizes for a site I've been given control over, and want to be able to call on them in the template code, which is set up like this

 <img id="product_thumb" class="border--round" alt="Image" src="<?php echo $vehiclepods->field('featured_image')['guid']; ?>">

Where do I pass the thumbnail parameter, or even force a size?

Sample template here

Functions here

2

There are 2 best solutions below

1
Quasel On

Depending on your settings and pod configuration

$vehiclepods->field('featured_image.speedmaster_front')

should output the Full Image!

More details about how to get just the link or more in the Pods Documentation:

field()

display()

Magic Tags

0
woodini On

Found the missing bit between the field and the thumbnail.

featured_image._src.speedmaster_front