Support ACF fields in display conditions #35700
maoxiong
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the Problem
The dynamic tags feature of "Display conditions" only works with string fields and will cause a fatal error with any ACF field type that returns an array (such as gallery, relationship or even terms)
Propose a Solution
If the dynamic tag is an array field, all the dynamic conditions still make sense (empty, not empty, contains, doesn't contain) - so just adjust the processor that if the tag is an array field, act on it in an array way instead.
Additional Context
No response
Agreement
All reactions