The repeating feature of the Meta Box plugin allows us to create multiple inputs from a text, textarea, select, … fields without declaring many fields in the code.
To make a field cloneable, just add
'clone' => true to field’s parameter. After doing that, you’ll see a new + (Add Clone) button below field input:
Clicking on that button will duplicate field input:
You can notice that there are new buttons - (Remove Clone) which allow you to remove clones.
Since version 4.5.4, there’re 2 additional parameters which allow you to use clone feature better:
max_clone: limit the number of clones. Integer. Must be greater than 2. Optional.
sort_clone: allow you to drag-and-drop sort clones. Boolean,
trueto enable sorting,
falseto disable. Default is
false. See the following screenshot.