WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. annethemes
    Member
    Posted 9 months 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 9 months 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 9 months ago #

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

  4. smackcoders
    Member
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic