Title: ACF repeater function
Last modified: July 24, 2021

---

# ACF repeater function

 *  [ramy](https://wordpress.org/support/users/dwwar/)
 * (@dwwar)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/acf-repeater-function/)
 * 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)

 *  [studiovitas](https://wordpress.org/support/users/studiovitas/)
 * (@studiovitas)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/acf-repeater-function/#post-15029173)
 * 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.

 * ![](https://ps.w.org/content-visibility-for-divi-builder/assets/icon-256x256.
   png?rev=1359961)
 * [Content Visibility for Divi Builder](https://wordpress.org/plugins/content-visibility-for-divi-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-visibility-for-divi-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-visibility-for-divi-builder/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)

 * 1 reply
 * 2 participants
 * Last reply from: [studiovitas](https://wordpress.org/support/users/studiovitas/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/acf-repeater-function/#post-15029173)
 * Status: not resolved