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

  1. annethemes
    Posted 2 years ago #

    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.


  2. smackcoders
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

  4. smackcoders
    Plugin Author

    Posted 2 years 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

  • CSV Import for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic