• Hi,

    I was having problems with importing featured image filenames, which were already uploaded to the media manager. After delving into the database and the plugin code, I noticed that the function save_image_with_name in include/class-woocsv-product.php had an error.
    The part:
    'value' => '/' . sanitize_file_name( $image ),
    should have been:
    'value' => sanitize_file_name( $image ),

    The meta_key _wp_attached_file is saving the filenames without a slash. There could be other wordpress configurations, but this little change saved my day after many hours of trial and errors.

    • This topic was modified 8 years, 6 months ago by czcsabi.
  • The topic ‘Featured image import bug solved’ is closed to new replies.