ACF field being recognized but not working properly with dynamic content and layout (archive category)

Hello!. I got a question about Dynamic content and Layouts (first time using this layouts feature, it’s awesome! thanks for this!).

Context: We created a layout assigned to “All archives”, mainly to replace view on categories (blog). We want to use some dynamic content for this new archive view. Some of it was created with ACF when taxonomy is equal to “Category”.

Current issue: The layout is working just fine, but the dynamic content isn’t being displayed on all archives (only on some of them).

We are trying to display de icon (ACF) as this: {{dc:acf:field field=“Icon”}}

Example: our categories have a “featured img” and and “icon img”. Both created with ACF. This pic is from one category when displaying both as it should (http://prntscr.com/1042bq4) and this is another category, with both images as broken link (http://prntscr.com/1042e2x).

You an check url here with broken data: https://jardindigital.rgnhyhc4-liquidwebsites.com/lecciones/sala-cuna/

Is it possible to receive any assistance from you to understand what are we doing wrong and why the dynamic content isn’t properly working on our custom layouts?

Thanks in advance!

Hi Luis,

It seems that {{dc:acf:field field=“Icon”}} it returning the Attachment ID. Regretfully at this time Dynamic Content can only show the values that ACF fields provide as a string. So if the image has been uploaded through the ACF, it returns the ID, our Dynamic Content system won’t be able to interpret that into something useful. If that is not the case, I would request you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hello!. I understand.
Yes, the case is as you mentioned: The image was uploaded via ACF field.

Thanks for your answer.

You’re very welcome, Luis!

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