-
Anonymous
Hello,
How can I control the image size of images retrieved from an ACF gallery?

-
Alvind
Hi there,
It should work the same way as setting a size for a regular Image block.
Can you share what issue you’re running into?
-
Anonymous
Well, the Image Block has an option for image size:

It’s not the case with Loop Item:

And in both cases, the Size setting in the Settings panel is disabled:

-
Alvind
Ah, got it.
For an ACF Gallery field, {{loop_item key:ID}} will always return the full-size image.
If you want a specific size, use the sizes key instead:
Medium: {{loop_item key:sizes.medium}}
Thumbnail: {{loop_item key:sizes.thumbnail}} -
Anonymous
Thanks.
-
Alvind
You’re welcome
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.