update_field()
is ACF function so I would guess the issue is with it. From quick look at source it calls get_field_object()
and so on, so environment might not be sufficient for it to work correctly during import.
There is no “half” state for native meta data, either it exists in database or it doesn’t. You could try to stick with native WP API for meta data, but no idea what is actually required for ACF to pick it up properly.
Related Posts:
- WordPress is stripping escape backslashes from JSON strings in post_meta
- Trying to get custom post meta through Jetpack JSON API [closed]
- How to update/insert custom field(post meta) data with wordpress REST API?
- Identifying Importer Posts
- Options to get my custom post type metadata via the WordPress API
- INSERT ON DUPLICATE KEY UPDATE failes in postmeta table
- Update Line Item Meta Data – WooCommerce API
- Post MetaTable Overload
- Cant create or update meta fields using WordPress REST API
- WP-API + JS Backbone client – how to update post meta
- WP-API : post_meta not updated… but have another entry
- How do I retrieve the slug of the current page?
- Most efficient way to get posts with postmeta
- How to extract data from a post meta serialized array?
- How to save an array with one metakey in postmeta?
- How to update_post_meta value as array
- What’s the point of get_post_meta’s $single param?
- Lack of composite indexes for meta tables
- Get a single post by a unique meta value
- Content hooks vs User hooks
- WordPress Rest API: How do we validate with our custom API key?
- Why time functions show invalid time zone when using ‘c’ time format?
- Save both current and new version of post meta
- get_post_meta – get a single value
- Can I safely delete a record, manually, in the wp postmeta table?
- get_post_meta / update_post_meta array
- Exclude a category from the filed under list
- How do I access post meta data when publishing a new post in Gutenberg?
- Triple meta_key on custom SELECT query
- update_post_meta not adding anything.(Nor add_post_meta)
- Add a post metadata if only the key and value does not exist
- How metadata API works?
- How to sanitize post meta field value?
- Post IDs missing on delete_postmeta action hook
- How trigger to save post when updating post meta
- Create a Metabox that behaves Like a Taxonomy Box
- Views count with time limit per IP
- conditional function to change post-meta background image
- Hook before posting via JSON REST API
- Custom meta field don’t give me numerical value
- how to get all post with the same post meta?
- WP_POSTMETA – What do these values mean inside the data structure?
- Echo page title from page with custom meta datetime picker
- MySQL Query To Select Post By Postmeta
- Copy content stored in meta to post content
- How to programmatically customise the Contact Form7 notification email prior to sending? [closed]
- Saving repeated option values when querying in Published, draft and all
- How to hide meta block(s) in certain post format
- need some assistance with the checkboxes (selecting/deselecting featured posts)
- get_post_meta() not work for the first post inside the loop
- Adding new value to existing meta key
- how to get a list of meta data fields assocaited with a custom post type
- Gutenberg: How to display meta field data in the block frontend (save function)
- String taken from database table post_meta is showing HTML tags on Frontend
- Delete posts based on post meta data
- Query posts WITHOUT a custom meta field
- get_post_meta not working when variable used for post ID
- How do I edit the posted “by” and “on” in the post meta
- How to delete duplicate records in wp_postmeta database table?
- update_post_meta() adding bits in database [closed]
- Get posts ordered by meta data
- Displaying values from related field – if empty shows current post type’s link and title
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- Display Post Meta in Header
- Array of user ids to list of user names
- Conditional For get_the_author_meta
- Custom fields or something else
- Is there a way combine posts meta_name?
- I want to Add Feedburner Right After Meta Details
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- How to access post meta on the first time a post is published
- Removing Malware
- I Can’t get the post_tag name from term_id using wp_set_object_terms
- After updating the custom post type, metafields disappear from the post.php edit menu, how do I fix it?
- How to update/add child posts meta whenever the parent post meta is updated?
- How to query post with meta?
- why is my postmeta table is so heavy
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- Using a comma instead of a pipe to separate metadata
- show user based on user_meta
- Memory Leak in Processing Large JSON file
- Meta keys won’t add using wp_insert_post
- How Can I extract Image urls from post meta
- return content section as json in wp rest api v1
- Retrieve posts from meta key
- Assign postmeta in bulk
- Twenty Twelve entry meta data – change and move
- Re-order posts inside tax query
- How can I prevent the post_modified column in wp_posts from being updated?
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- Using mysql queries to delete custom post types based on meta_value
- get_post_meta image width for lazy load
- Custom Fields help
- Parse error thrown by get_post_meta [closed]
- How to get all the related ids without array?
- Remove action of an external plugin after checking if custom post meta is set
- I am stuck between post meta function to call unique id