I want to use the value of an ACF field as attribute on my category archive page. The dynamic content rule that works for dynamic text does not work for the dynamic attribute.
These are the settings for a paragraph (this works):
These are the settings for the dynamic attribute (doesn’t work):
I think there may be some kind of misunderstanding for this one. Where are you setting the values for Theme Settings field group Transparent Header property? As the Archive template is not a page, the only thing I can think is that you are adding these directly to the template. We tried that before and it didn’t work, which seems to be an ACF limitation, not a Cwicly one.
I think the only way to do this in a configurable way would be to add it to an ACF Options page.
Hmm, regarding Global Fragments you might be right. The ACF value I’m looking for is set in the Taxonomy Terms settings. So for example I have the term “Socks” in my shop and in the settings of this Term I set the ACF value.
Ahh, you are setting it for the terms! In this case I believe at the moment you will only be able to reference it within the context of that term (either within a Taxonomy Terms block, or within a Query block).
However, please see this bug for possible issues and workarounds:
Well, I do can reference ACF values in all other ways. I can pull images and dynamic data for text elements for example. So it does seem to be somewhat accessible.
Ahh, I understand. All these PHP stuff is a bit complicated for me
For now I have a Workaround with CSS that I’m fine with. So I will now wait to see what @Louis thinks about this.
Thanks a lot for your engagement here and in this forum general! Especially you and @Marius are a treasure for this community!