Title: Multi Loop Bug
Last modified: September 1, 2016

---

# Multi Loop Bug

 *  [NeilThomas2112](https://wordpress.org/support/users/neilthomas2112/)
 * (@neilthomas2112)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/multi-loop-bug/)
 * Hi, I am having a problem with the Loop field, I have a loop within a loop, when
   I first save the data in the fields it works perfectly, if I add or delete a 
   row in the multi-loop, the array skips a row which causes a problem. This is 
   the var dump when I first save the post
 * array (size=1)
    0 => array (size=4) ‘line_color’ => string ‘#3781bd’ (length=
   7) ‘line_name’ => string ‘Cumulus’ (length=7) ‘line_invisible’ => int 0 ‘line_data’
   => array (size=3) 0 => array (size=2) … 1 => array (size=2) … 2 => array (size
   =2) …
 * When I deleted and added another row.
 * array (size=1)
    0 => array (size=4) ‘line_color’ => string ‘#3781bd’ (length=
   7) ‘line_name’ => string ‘Cumulus’ (length=7) ‘line_invisible’ => int 0 ‘line_data’
   => array (size=3) 0 => array (size=2) … 2 => array (size=2) … 3 => array (size
   =2) …
 * Is there a way I can stop this from happening when I delete or reorder the multi-
   loop?
 * Thanks
    Neil
 * [https://wordpress.org/plugins/custom-field-suite/](https://wordpress.org/plugins/custom-field-suite/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [NeilThomas2112](https://wordpress.org/support/users/neilthomas2112/)
 * (@neilthomas2112)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/multi-loop-bug/#post-7589789)
 * Yeah it keeps adding extra keys to the multi-loop has anyone had this issue and
   solved it?

Viewing 1 replies (of 1 total)

The topic ‘Multi Loop Bug’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [NeilThomas2112](https://wordpress.org/support/users/neilthomas2112/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/multi-loop-bug/#post-7589789)
 * Status: not resolved