Import image from my hard-disk

Closed

Import WP Pro Updated 1 year ago 3 Replies

Associazione asked 1 year ago on December 8, 2023 at 6:32 pm

How can I import an image as a featured image directly from my hard disk? If I enter the path of the image on my hard disk in the CSV file, the image is not imported into my post. Is it possible to solve it?

Thank you

J

James replied Support Agent

1 year ago on December 8, 2023 at 8:10 pm

Hi Associazione,

Your media files / images need to either be accesible via a url, or accesible to the website via a local path.

James

J

James replied Support Agent

1 year ago on December 8, 2023 at 8:14 pm

I would recommend uploading your images/attachments to a folder on your webserver, and then importing to the media library from there or you could upload all your images to the media library and then use the "Immagine Reference" column to import them from the media library using a custom method to convert the filepath: C:\Users\assoc\Desktop\Gli-strumenti-1.jpg to just the filename Gli-strumenti-1.jpg. 

If you need help writing a custom method to do this let me know, (an example of modifying dates using custom methods can be found here: https://www.importwp.com/docs/modifying-dates-using-custom-methods/ , this should give you an idea of how to call custom php functions within the importer fields).

AB

Associazione replied

1 year ago on December 10, 2023 at 4:48 pm

Ok, Thanks