Support

Account

Forum Replies Created

  • hello john,

    thanks for the quick response. no, i’don’t use the repeater field. here is an example which might help to understand my approach:

    – i build a custom post type for a special electronic device
    – this post type consists of a lot of data: text-fields, dropdowns, checkboxes and one image field.
    – my client has a csv table with all the different models every single model is one instance of this custom post type. that means, every post has it’s own image that i want to store in the image field.

    if i need the image id this might further complicate things, since i don’t have the ids but the name or the url of the image files. but i will try to expreimentate with the ids to, that might be a good hint.

    and yes, i use the field_key when calling update_field().

    best regards
    philipp

  • hello john,

    are you sure, that it doesn’t exist? since it has a field-key i thought it would automatically exist, but without content. maybe that was wrong and you are totally right.

    however, i also experimented with an already created post and tried to do the same thing: update the image-field with an image from the wordpress media library, without success since i don’t understand the update_field function parameter $value. i figured out that i probably have to pass some kind of array to that function (like the one you get with get_field_object). however my php-skills weren’t enough to make that working.

    could you explain me how to do that?

    i also asked at the support forum but didn’t get any response for days :/

    best regards
    philipp

Viewing 2 posts - 1 through 2 (of 2 total)