woodini
woodini

Reputation: 33

How to return custom thumbnail size of featured image in Pods

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

Upvotes: 2

Views: 993

Answers (2)

woodini
woodini

Reputation: 33

Found the missing bit between the field and the thumbnail.

featured_image._src.speedmaster_front

Upvotes: 1

Quasel
Quasel

Reputation: 1

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

Upvotes: -1

Related Questions