2
Support ACF fields in display conditions
Source: elementor/elementor#35700 · opened by @maoxiong
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
• I confirm I have read and followed all the guidelines and instructions outlined in the Feature Request form.
• I agree that my discussion may be closed without further action if it doesn't meet all the requirements outlined in the Feature Request form.
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
• I confirm I have read and followed all the guidelines and instructions outlined in the Feature Request form.
• I agree that my discussion may be closed without further action if it doesn't meet all the requirements outlined in the Feature Request form.
No pledges yet. Be the first to back this.
Comments
Similar requests
Add ACF Taxonomies to Display Conditions
15 votes · 0 comments
Enable acf shortcode functionality by default.
1 vote · 0 comments
Feature Request - Comprehensive Support for ACF Fields in Elementor
8 votes · 0 comments
Support for ACF Repeater Fields in Elementor
11 votes · 0 comments
⏳ 🔗 ACF / ACF Pro Field Editing Directly in the Elementor Editor
7 votes · 0 comments
No comments yet.