Dynamic Attribute on Archive Pages doesn't work

Description:

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):
Bildschirmfoto 2024-10-29 um 20.02.56

These are the settings for the dynamic attribute (doesn’t work):

Environment info

  • WordPress version: latest
  • Cwicly Plugin version: latest

Which block are you applying this to? The reason I ask:

Thats interesting. I did use a section but for me it doesn’t work with any element I try.

This also applies to the conditions for Global Fragments. The condition shown in the screenshot does not work on archive pages

This issue also seems to affect the visibility conditions:

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:

1 Like

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.

This was the issue I was highlighting the most.

1 Like

Ahh, I understand. All these PHP stuff is a bit complicated for me :stuck_out_tongue:
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! :pray:

5 Likes