The problem is that the function update_field from ACF works a little bit different from update_post_meta. Can you see it?
update_post_meta( $post_id, $meta_key, $meta_value, $prev_value );
update_field( $field_key, $value, $post_id );
If you use update_post_meta you should in my opinion use get_post_meta to get the meta. If you use update_field you should use the_field or get_field because ACF stores the key/values-pairs in a slightly different way.
Related Posts:
- ACF (Advanced Custom Fields) not updating post or postmeta values
- Update post meta value as date difference between two fields
- Updating the database with advanced custom fields
- Update post meta within save_post action
- Frontend Form Checkbox Update ACF Field
- Help using acf/save_post hook to connect to Untappd API and update_field [closed]
- Passing error/warning messages from a meta box to “admin_notices”
- Filtering multiple custom fields with WP REST API 2
- How to import CSV into Custom Post Type custom fields?
- ACF – get fields from group
- Front end form to create a custom post with preview
- Execute action after post is saved with all related post_meta records (data)
- How to get “Additional CSS Class” for ACF Gutenberg block
- Advanced Custom Fields select field : How to echo the label, not the value? [closed]
- advanced custom fields update_field for field type: Taxonomy
- ACF: get_field() returning false [closed]
- Generate a excerpt from an ACF-wysiwyg-field
- Adding custom fields to the header.php
- How to get_terms() only of terms matching an ACF meta value?
- Pods cms and “advanced custom fields” plugin
- Adding a body class with ACF
- Returning all radio button options when using Advanced Custom Fields
- Get updated meta data after save_post hook
- Manipulating post meta in the customizer
- WP REST API: Order posts by meta value (acf)?
- wordpress REST-API upload image to ACF
- Add post meta based on another post meta value before publish post
- Get Advanced Custom Fields values before saving [closed]
- Better post meta efficiency?
- update_post_meta() not working in save_post
- How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair?
- Query between dates using Date Picker fields
- Order and group posts by acf by month and year
- Get the label from ACF checkbox [closed]
- Advanced custom field – gallery – display one random image
- How to update a custom post title from a front-end form using ACF fields?
- Post meta checkbox becomes unchecked occasionally
- Showing an ACF field in admin posts dashboard
- Google Places API With ACF [closed]
- Check for the existence of custom field
- Vimeo thumbnails [closed]
- query posts in functions.php and update a field
- pre_get_posts filter using numeric meta_query comparison (from dates)
- ACF + contact form 7
- Metabox of one post influence setting on other
- Is there a way to export Advanced Custom Fields data?
- Copying Custom Meta Values from existing post to a duplicate post
- How to add a custom field to quick edit
- Using Advanced Custom Field (ACF) to insert meta description on each page
- Returning ACF custom field from publish_post
- ACF Repeater Field, need IF statement for if sub field has content
- Can not create fields in ACF with code
- Gutenberg First Block on Page Conditional?
- Using meta_query and custom fields within pre_get_posts to return posts within a numerical range
- Comparing arrays with meta_query in pre_get_posts
- Set default date in datepicker of an advanced custom field
- Advanced Custom Fields plugin : displaying a YouTube video
- Advanced Custom Fields – Check if multiple get_fields exist?
- ACF – Custom fields have dissappeared [closed]
- Get updated post meta on save_post action?
- Error in Validate Field with ACF plugin in WordPress
- update_post_meta not working in save_post
- How do I add advanced custom fields / meta fields to Elasticsearch? [closed]
- Correct processing of `$_POST`, following WordPress Coding Standards
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- update_post_meta() whenever custom post type is updated
- How to order by just the Time Field in Advanced Custom Fields
- unable to save post meta on single field with multiple selects
- Trigger “unsaved changes” dialog for custom post meta changes
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- Query pages for use of a flexible content layout
- WordPress Gutenberg, update post content programmatically
- ACF get field label in custom code
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Delete post meta conditionally after save post
- ACF repeater field with meta_query
- Query Posts depends on custom field inside repeater field using acf
- How to add custom fields in rss feed
- sort by date in Advanced Custom Field
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- How to customize a divs background dynamically using Advanced Custom Fields Plugin?
- disable (read only) a field if within a custom post type name
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Replace post’s “the_content” with ACF value
- Minimising Database Queries when using Advanced Custom Fields
- ACF if / else checkbox [closed]
- PHP echo stripping formatting in Advanced Custom Fields [closed]
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- Post Object field orderby (Advanced Custom Field)
- How to count ACF Flexible Content Rows?
- ACF Plugin – Random Gallery Image with wp_get_attachment_image()
- How to change the page title from functions.php
- Sorting custom admin column by value
- Acf Pro repeater field returns null [closed]
- Query between dates using date picker filter breaks in WordPress 4.2.1
- How to upload multiple images on frontend to ACF gallery using update_field
- Faking the “onSave” event
- Add user custom fields and make editable on frontend
- Insert Commas into ACF number field
- How I can check if get_theme_mod is in header or a template part