Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

ACF Gallery image size

  • Hello,

    How can I control the image size of images retrieved from an ACF gallery?
    AFC Gallery image settings

  • 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?

  • Well, the Image Block has an option for image size:
    Featured Image

    It’s not the case with Loop Item:
    Loop Item

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

  • 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}}

  • Thanks.

  • You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.