• Elements are not displayed as expected. ACF field is a radio that returns one of four values. The Return Value is set to “Value” in ACF. Conditional Values for various elements are set to “all-lists,self-employed-lists” or “all-lists,career-list”.

    Using vardump reveals that instead of checking the value of the field, your plugin checks the label. 🙄

    Also, warnings are logged. A plugin in production should not generate any warnings like this:

    [01-May-2025 00:45:04 UTC] PHP Warning: Undefined array key 0 in /wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php on line 33
    [01-May-2025 00:45:04 UTC] PHP Warning: Undefined array key 1 in /wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php on line 33
    [01-May-2025 00:45:04 UTC] PHP Warning: acf-text(): ACF Text Field value must be string, but is type of: NULL in /wp-includes/functions.php on line 6121

    Also also, it would be more user-friendly to allow a space after the comma in the Conditional Value. Cheers.

The topic ‘“In array” option not working’ is closed to new replies.