Title: Error while loading loop
Last modified: March 28, 2018

---

# Error while loading loop

 *  [dimitrishd](https://wordpress.org/support/users/dimitrishd/)
 * (@dimitrishd)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/error-while-loading-loop/)
 * Hello , i have created a loop field named ‘repeater’.
    I have a nested link field
   in it. I use the following code to generate my repeater field inside my custom
   post type single-page.
 *     ```
       $fields = CFS()->get( 'repeater' );
       foreach ( $fields as $field ) {
           echo $field['overview'];
       }
       ```
   
 * I get the following error :
    Warning: Invalid argument supplied for foreach().
 * Can someone tell me what is wrong? And how can i use these fields in my HTML 
   so can use them in a menu?
 * Thanks

The topic ‘Error while loading loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-field-suite.svg)
 * [Custom Field Suite](https://wordpress.org/plugins/custom-field-suite/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-suite/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [dimitrishd](https://wordpress.org/support/users/dimitrishd/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/error-while-loading-loop/)
 * Status: not resolved