Support » Plugin: CSV Import for WordPress » how to import media such as pdf file as custom field for custom post type

  • Resolved annethemes

    (@annethemes)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author smackcoders

    (@smackcoders)

    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.

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

    Plugin Author smackcoders

    (@smackcoders)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to import media such as pdf file as custom field for custom post type’ is closed to new replies.