Hi @douglasmikado, there is indeed! This would depend on whether the image you’re working with is the post’s featured image or some other image custom field. If you’re working with the featured image, you can use the regular HTML img
tag and its attributes to set the size of the image.
So in practice, this tag simply displays a post’s featured image:
<Field image />
In contrast, using something like this instead with the img
tag would give you a lot more control over how it gets displayed, such as the render size. Note that you can dynamically fill whatever values you need using the Field
tag with the image_*
attribute (noted here) where that asterisk is a wildcard for any field from the attachment loop.
<img src="{Field image_url}" alt="{Field image_alt}" width="500">
If you’re working with a custom image field, the approach is quite similar and you’d still want to use the img
tag but you’ll need to wrap it in an attachment loop. Check out this how-to guide for an explanation if you’re working with a custom img field.
-
This reply was modified 2 years, 2 months ago by Tangible. Reason: Added an example if you're not working with a post's featured image