Bricks Builder ACF image alt text - How to

If you are using ACF (Advanced Custom Fields) and want to output the image alt text in the custom alt text field, it’s quite simple, but I could not find anything when searching online. So here it is.

If you have an image in ACF to refer to, it would be something like this:
{acf_image}
and to get the image alt text would be:
{acf_image:image_alt}

This is based on the dynamic data filters in the docs: Dynamic Data

Hope this helps.

1 Like

The best method I found for this is using the ACF image array.

Try this: {acf_image:array_value|alt}

The array should also work for all the other values like:
title
caption
url

Just replace the end with what you are looking to display.
{acf_image:array_value|title}
{acf_image:array_value|caption}
{acf_image:array_value|url}

I hope this helps.