I have a value from a option field:
The value being pulled from the data base looks like this $value = $this->value;
.
Then I can update the value like this:
<textarea id="'.$this->field['id'].'[]" name="'.$this->args['opt_name'].'['.$this->field['id'].'][]" rows="6" class="'.$class.'" />'.esc_attr($value).'</textarea>
What I want to do is to add another text area field below the first one, and for it to save both values in the database. I can copy and paste the above code, and it updates my array. But the values don’t show inside the field itself, the field is empty. Any clue on what I should do?
Thanks for the feedback,
I used
array_chunk
to fix my problem