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.1.7, csv import, update
My coding isn’t that good to do this from scratch. Can you offer a snippet example of this? Thanks so much.
@ PatriciaB
It pretty much exactly how you registered the custom field to show in the list and the example in the tutorial you followed.
add_filter( 'cncsv_map_import_fields', 'cncsv_remove_header_name' );
function cncsv_remove_header_name( $fields ) {
unset( $fields['honorific_prefix'] ); // Removes name prefix from drop down
unset( $fields['middle_name'] ); // Removes middle name from drop down
unset( $fields['honorific_suffix'] ); // Removes name suffix from drop down
// var_dump( $fields );
return $fields;
}
You can uncomment the var_dump command and if you visit the mapping page it spew out a list of the field ids on every row. You can use that to tweak the filter to remove the items you do not want.
Hope this helps!
This worked great. Just one edit. The line below needs to be added after your first line and then it worked great.
add_action( 'cncsv_import_fields', 'cncsv_process_import', 10, 2 );
Thank you Steven!
