WordPress.org

Forums

Import CSV with Ultimate CSV Importer
[resolved] how to import media such as pdf file as custom field for custom post type (4 posts)

  1. annethemes
    Member
    Posted 1 year ago #

    Hi
    I am doing a large data import for a custom post type that uses custom fields. For each post I have several custom fields that are images and several that are pdfs. I can upload the attachments to the media library, but what do I need to put in my csv file so that the attachments will be connected to the posts correctly in the database?
    Thank you.

    http://wordpress.org/plugins/wp-ultimate-csv-importer/

  2. smackcoders
    Member
    Plugin Author

    Posted 1 year ago #

    Follow these steps,
    * import all pdf files to media.
    * get the file url from media.
    * copy and paste the url in the csv under the custom field column.
    * repeat the above steps 2 and 3 for all posts and save as csv file with UTF-8 format.
    then import the csv and map the column with the existing custom field.

  3. annethemes
    Member
    Posted 1 year ago #

    Thank you, this is fantastic info! Does it work with image attachments as custom fields as well?

  4. smackcoders
    Member
    Plugin Author

    Posted 1 year ago #

    It is compatible with custom post type UI. We have issues with ACF plugin. Image as custom field may not support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Import CSV with Ultimate CSV Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic