• Excellent plugin !

    Added support for the featured image as shown on github

    add_action( ‘acsv_after_insert_post’, function( $post_id, $post, $helper ){
    $id = $helper->add_media( $post[‘post_meta’][‘post_thumbnail’] );
    update_post_meta( $post_id, ‘_thumbnail_id’, $id );
    }, 10, 3 );

    2 questions :
    – Is it possible to import media to the library without duplicating it, just using the provided URL and keeping the file there.
    – How would I go about importing media for another custom field ?

    Best regards,

    Brice

    https://ww.wp.xz.cn/plugins/advanced-csv-importer/

The topic ‘Importing Media’ is closed to new replies.