Implementation of {{acf:field_name}} changed for File with Pro 3.2?

Hello,
could it be, that there is an unfortunate change in implementation of {{acf:field_name}} for ACF fields of type File from Pro 3.1. to Pro 3.2.

In Pro 3.1. {{acf:my_file_field}} returned $file[‘url’], in Pro 3.2. {{acf:my_file_field}} returns $file. This means that the link worked fine in Pro 3.1 but not in Pro 3.2. See as an example the download button at the end page:

Question: is there a way to still access the $file[‘url’] inside the Cornerstone basic integration ? E.g. by something like {{acf:my_file_field.url}} ? Or do we have to live with the fact the accidental functionality in Pro 3.1, is not available anymore in Pro 32?

Thanks a lot!

Take care,
Hendrik

Pro 3.2.3
ACF Pro 5.8.9
WordPress 5.4.1

Hello Hendrik,

Thanks for posting in!

As stated in our documentation here: https://theme.co/docs/acf-pro#cornerstone-content-builder-integration,

You’d use:

{{acf:field_name}}

Within your Cornerstone content where field_name is the name of your field as shown in the ACF Pro field edit screen. Please note, this is a basic integration and will only support text-based fields. For example, it won’t output a gallery. Also, use the WYSIWYG type field with caution - WordPress’s visual editor automatically adds tags, which can break element markup causing display issues.

The field value should be displayed. You may have using the incorrect field name. Kindly provide us access to your site so that we can check your settings. Please create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/docs/getting-support

Regards.

Hi Ruenel,

since the {{acf:field_name}} where ACF field is a File was undocumented functionality, we assume it will not be fixed now it broke with Pro 3.2. Btw. the {{acf:field_name}} still works for text fields as documented.

We’ll write a shortcode to replace the {{acf:field_name}} for Files.

Thanks for your time.

Best regards,
Hendrik

You’re welcome, Hendrik.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.