Hi,
I am trying to rebuild a website that once was based on another CMS.
In my database, I have 6000 files (pdf, jpg, docx, rtf) that I need to import and associate with posts.
One way to doing this seem to import the posts with a custom "files" field including the list of files URLs.
Except by doing this I lose all metadatas on my original files (such as title and descriptions, which are needed for SEO purpose).
What other way would you suggest to import media files ?
Thank you.
Hi Roman,
Thank you for contacting us and I'd be happy to assist.
Your requirement can be broken down into two main parts:
1. Importing files into the WordPress Media Library:
You'll need this step so that each file's metadata can be imported correctly with the files.
There are third-party plugins available like "Media from FTP" which can be used for this:
https://wordpress.org/plugins/media-from-ftp/
2. Adding those files in the custom fields of the related posts:
Once your files and their metadata has been imported successfully into the WordPress media library, you can import their URLs in the relevant custom fields for posts, as explained in this guide:
https://toolset.com/documentation/user-guides/export-import/how-to-import-content-into-wordpress-using-csv/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
By importing by FTP, I will still loose my metadatas such as "title", "alt", "description", which are in my CSV only, and not on the files. Or is it something I am missing ?
Thank you.
Thanks for writing back.
If you have the media files meta data in the form of CSV file, then this video from the "Import and Export WordPress Data as CSV or XML" plugin ( ref: https://wordpress.org/plugins/wp-ultimate-csv-importer/ ) will help:
hidden link
My issue is resolved now. Thank you!
My issue is resolved now. Thank you!
My issue is resolved now. Thank you!