Problem with Vantage CUSTOM FIELD CSV IMPORT...problems problems
Ok, absolutely no luck with creating a single (just one) custom field and importing a csv. The custom field does not show up in the listing.
If I copy the code you have in the forum (from
http://forums.appthemes.com/help-usi...listing-31116/)
function my_custom_csv_fields( $args )
{
$args['custom_fields']['mydate'] = array( 'internal_key' => 'app_mydate' );
$args['custom_fields']['another_field'] = array( 'internal_key' => 'app_another_field' );
return $args;
}
add_filter( 'va_csv_importer_args', 'my_custom_csv_fields' );
and modfy the code to
function my_custom_csv_fields ( $args )
{
$args['custom_fields']['schoolname'] = array( 'internal_key' => 'app_schoolname' );
return $args;
}
add_filter( 'va_csv_importer_args', 'my_custom_csv_fields' );
I remain SOL
- I have created a child theme
- The child theme contains a css file (including the links indicated to be pasted into the file)
- The child theme contains a functions.php file, where I pasted in the code above (enclosed in <?php and ?> tags
- A custom form has been created - "schoolname" (Originally it was "School Name", but since I have no idea whehter that ends ups as school-name, school_name, or schoolname, I made everything "schoolname") - And I had all sorts of problems before resorting to just the one value "schoolname"...
- The label in the form is also "schoolname"
- The form is linked to categories
- I added to my csv import file a "schoolname" field (in the last column of the csv file)
- The child theme is activiated
-The electricity is on
But I cannot get it to work.
I am using the "title" field for course offerings - thus, I would like to have a custom field for the name of the school offering the course.
Look forward to hearing from you