wp_editor
function accepts (array) $settings
param and that one can contain textarea_name
as a key. If it’s not being specified, it’s set by default as $editor_id
. See: https://github.com/WordPress/WordPress/blob/c392ff6f90d550bad876d8a984ad6b3b8a49cd96/wp-includes/class-wp-editor.php#L44
So you might want to do something like this:
foreach ($get_url as $list) {
...
$settings = array( 'textarea_name' => 'uploaded_csv[]' );
...
wp_editor( $link, $editor_id, $settings );
...
}
And in your saving function, you simply loop over the $_POST['uploaded_csv']
array
function save_wp_editor_fields(){
global $post;
foreach ( $_POST['uplaoded_csv'] as $key => $uploaded_csv ) {
update_post_meta($post->ID, 'my_uploaded_csv_'.$key, $uploaded_csv);
}
}
Of course you should figure out the uniqueness of the created meta (eg. giving it a number or handle more meta keys per post with non unique name. See http://codex.wordpress.org/Function_Reference/add_post_meta).
Hope this helps a bit!