WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] CSV import with advanced custom fields (4 posts)

  1. radiofranky
    Member
    Posted 1 year ago #

    Hi,
    I was wondering how to import CSV posts with custom fields.
    For example, I looked into table "postmeta" and each field contain two meta_key. I have a custom field called "coupon_code" and I also see ACF generates another coupon_code with "_coupon_code" with some value "field_iudi3weiie9".

    What and how is this "field_deiidisee" generated? If I want to import posts with those fields via CSV. Do I need to add both "coupon_code" and "_coupon_code" in order for ACF to recognized the "coupon_code" field?

    Your help is appreciated.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. richF
    Member
    Posted 1 year ago #

    Hi, this is something I'd really like to do as well. Any help on this would be greatly appreciated :)

  3. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi radiofranky,

    The underscore custom field is a reference to the field object.
    The field object holds all the data that you can edit in the "edit field group" screen.

    This reference allows ACF to save data in 1 format, but return data depending on the field object's settings.

    A good example of this is the image field. It will save the ID, but can return either the ID, url or object.

    If you don't have this reference, ACF will not be able to format the value and will return it as is.

  4. tumateix
    Member
    Posted 1 year ago #

    I have the same problem, I tried to upload a cvs with my custom fields created with ACF, and it doesn´t recognise my fields. The file only get and reads correctly the custom fields of the post, but no any field I created.

    Is it a problem of the name I´m using? I even try the Field Key, some like CF:_value and nothing, I see in my wbpd that the field is not created.

    How can I know the correct name for my fields so I can create the CVS correctly and get my post fields populated.

    Any Ideas? Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.