08/02/2018 at 11:18 am
#469056
Guest
Sure. After I complete the code snippets
// Register the metabox and fields.
add_action( ‘cn_metabox’, ‘cn_register_custom_metabox_and_text_field’ ); etc
function cncsv_import_meta_fields_options( $fields ) {
/**
- The `key` must absolutely be unique otherwise you may end up overwriting over metadata.
- The ‘CSV File Header Name’ will be the option name shown in the dropdown.
- The CSV header name should match exactly the column header name in the CSV file.
*/
//$fields[‘key’] = ‘CSV File Header Name’;
$fields[‘spouse’] = ‘Spouse’;
$fields[‘term’] = ‘Term’;
return $fields;
}
And these new fields do come up on the source file on the left. But I just see the standard set of fields appear on the right. Should term and spouse be appearing there also?
