Hi @millionleaves
That should work as you’ve posted, assuming the image size is correct.
If you so this using PHP, how is it rendered then?
https://developer.wordpress.org/reference/functions/wp_get_attachment_image/
Cheers, Jory
I am using a Pods Template and then outputting the Pods template via Beaver Themer via a custom layout in a BB grid module. So, no PHP involved. I could go that route if necessary.
As a test, I tried adding the magic tag for the field directly to the Themer layout:
[wpbb post:featured_image size=’logo-wide’]
I get the same result – the image is scaled to the correct size defined for the logo-wide thumbnail rather than using the logo-wide thumbnail. I have confirmed that the appropriate thumbnail exists in the file system.
It feels like this may be a bug/oversight somewhere between Pods, Beaver Themer, and the Pods Beaver Themer integration plugin. But I’m hoping it’s just that I’m something wrong!
Hi @millionleaves
To be sure this is a Pods bug, please disable Pods and check if that BB shortcode still behaves the same.
I’m starting to think this is a WP core issue since I believe both plugins simply use the WP core functions to fetch and render images.
Cheers, Jory
Hi @keraweb
OK. Looks like the issue could be with how Beaver Builder is interpreting the Pods template.
Most of the CPTs created by Pods are output using a Pods template in a Beaver Builder grid module. The thumbnails are not being output correctly when I do this.
For one CPT, I have created a custom shortcode in PHP instead of a Pods template. The shortcode is placed in a Beaver Builder text module. The thumbnail size is displayed correctly.
I’ll follow up with Beaver Builder support as well as the Pods Beaver Themer Add-On plugin developer.
Hi @millionleaves
Ok great, we’ll close this in the meantime, if there is anything we should fix in Pods core, let us know!
Cheers, Jory
@keraweb I found the issue. I was using the PowerPack Custom Grid module. Seems this module doesn’t output the thumbnails. I switched to the PowerPack Content Grid which does.
Thanks for your help.
Awesome, thanks for letting us know!