• Here is my code snippet. All I want to do is when the field is empty hide form/field.

    <?php $options = array(
                'post_id' => 'user_'.$userid,
                'field_groups' => array(1293),
                'form' => false,
                'return' => add_query_arg( 'updated', 'true', get_permalink() ),
                'html_before_fields' => '',
                'html_after_fields' => ''
            );
            acf_form( $options );
            ?>
    

    The page I need help with: [log in to see the link]

  • The topic ‘hide acf form if empty’ is closed to new replies.