Support

Account

Home Forums ACF PRO Gallery field preformance issue Reply To: Gallery field preformance issue

  • Hi @mrshemek

    When getting the gallery field’s value, ACF will format it. This means it will load all the image data for each image – resulting in the longer load time.

    You should make use of the 3rd parameter for the get_field function which disables the formatting of a value:
    get_field('companyImages', false, false);

    This will load only the DB value without formatting and will return an array of attachment IDs

    Cheers
    E