Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.36.1, csv export, custom fields, feature request
- This topic has 12 replies, 2 voices, and was last updated 2 years, 1 month ago by
Margo Bowie.
-
AuthorPosts
-
01/25/2019 at 4:53 pm #482679
Margo Bowie
Participant<i m g src=”http://tribute-kiosk-software.com/demo/wp-content/uploads/Emblem_ARMY.png” alt=”Branch” id=”branchlogo”>
01/28/2019 at 11:15 am #482845Steven Zahm
Keymaster@ Margo
Could be the space in the words is not being liked. Try this:
// Register the custom fields CSV Import mapping options and processing callback. add_filter( 'cncsv_map_import_fields', 'cncsv_header_name' ); add_action( 'cncsv_import_fields', 'cncsv_process_import', 10, 3 ); function cncsv_header_name( $fields ) { // The field_id should match exactly the field id used when registering the custom field. $fields['branch_logo'] = 'Branch Logo'; $fields['marker_location'] = 'Marker Location'; return $fields; } function cncsv_process_import( $id, $row, $entry ) { // The field_id should match exactly the field id used when registering the custom field. $logo = $entry->arrayPull( $row, 'branch_logo', '' ); $logo = cnFormatting::maybeJSONdecode( stripslashes( $logo ) ); $marker = $entry->arrayPull( $row, 'marker_location', '' ); $marker = cnFormatting::maybeJSONdecode( stripslashes( $marker ) ); cnEntry_Action::meta( 'update', $id, array( array( 'key' => 'Branch Logo', // The field_id should match exactly the field id used when registering the custom field. 'value' => $logo ), array( 'key' => 'Marker Location', // The field_id should match exactly the field id used when registering the custom field. 'value' => $marker ), ) ); }
01/28/2019 at 4:14 pm #482901Margo Bowie
Participantworked!! Thank you!
-
AuthorPosts
You must be logged in to reply to this topic.