Archived topic
Using Dynamic Image with Meta Field
5 replies · Started by Kumara on December 11, 2021
Hello,
I'd like to use a custom image as the post thumbnail rather than the featured image in one of my categories. I've been able to do this so far using a block template and the dynamic image block set to 'post meta'. On each post I'm adding the link to the custom image in a meta field. The issue I'm running into is that the image size I've selected in the dynamic image block is being bypassed and rather than getting the cropped thumbnail I'm getting the full size version of the image instead. Is it possible to get the specified image size in this scenario?
Thanks so much!
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Hi Ying,
Thanks so much for your reply. I've sent a link to the archive page.
Hi there,
your custom field would need to store the ID of the Media Attachment not the URL for you to be able to set a specific size.
That was it. Thanks so much David!
Glad to hear that!