• hi,
    I’m using the ACF repeater
    repeater name: packages
    subfield name is: plan_name
    how can I use a function to hide a row if the sub field is empty?

Viewing 1 replies (of 1 total)
  • Hi, I had the same problem with groups.
    I solved it by creating a function in function.php which returns me true or false.

    
    function vitas_acf_check($groupName,$fieldName){
            global $post;
            $group = get_field($groupName);
            return $group[$fieldName] ? true : false;
        }
    

    and then in Divi visibility option:

    
    vitas_acf_check("pubblicazione_6", "link_download" )
    
Viewing 1 replies (of 1 total)
  • The topic ‘ACF repeater function’ is closed to new replies.