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]
- Execute action after post is saved with all related post_meta records (data)
- Generate a excerpt from an ACF-wysiwyg-field
- Pods cms and “advanced custom fields” plugin
- update_post_meta() not working in save_post
- Order and group posts by acf by month and year
- 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
- Returning ACF custom field from publish_post
- unable to save post meta on single field with multiple selects
- WordPress Gutenberg, update post content programmatically
- How to add custom fields in rss feed
- Replace post’s “the_content” with ACF value
- Minimising Database Queries when using Advanced Custom Fields
- PHP echo stripping formatting in Advanced Custom Fields [closed]
- How to upload multiple images on frontend to ACF gallery using update_field
- Add user custom fields and make editable on frontend
- Inconsistent behavior from number_format
- Set default Custom Post Meta Value
- Display post in order of ACF checkbox?
- ACF custom block get_field() shows null on front-end? [closed]
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- How to display genre of music content from one page to another page in wordpress
- How to decrease the number of queries with get_posts and ACF?
- How to make Advanced Forms (and/or ACF) encode input value?
- Troubles with acf/save_post and WP_Query
- ACF: How to make get_field() ignore the main wp query?
- Set default value field meta_Value [closed]
- Filtering from advance custom field data
- Seemingly Simple Conditional Won’t Work?
- Prepared statements used incorrectly in ACF?
- Not displaying posts that are in the past. ACF date > date
- acf repeater was free in start [closed]
- Use ACF select field to add a class to div inside a flexible content layout [closed]
- Pull info from Soundcloud embed into a custom field?
- How to disable field on Advanced Custom Fields? [closed]
- Get all the posts where meta field with multiple choice has several values checked
- Outputing Post Object title as a div class with ACF
- Add original validation rule to Advance Custom Fields
- Change post author without using wp_update_post()
- ACF – Pick first or second value from comma separated values
- How to get ACF value inside Gutenberg Block from another page or template? I’m using Timber too
- ACF Maps admin error: “For development purposes only” even after supplying api key
- ACF and Gravity Form file upload frontend [closed]
- Trying to select 1 item from an array
- Query and display only by first letter of the get_field value
- Sorting get_terms, ACF is automatically removing duplicates
- Only Show an Advanced Custom Fields custom field on a specific template
- Advanced custom field – posted fields from custom post type
- Advanced Custom Fields plugin : displaying a field while omitting the p tags
- Check for page template on save_post hook
- getting image from ACF
- ACF: If field contain a specific value, update value in another field
- Equation input with preview in classic editor
- How to show related post having same relationship filed under single CPT?
- Update field for repeater not working
- How can i add service category here? [duplicate]
- Can’t get the frontend cache to be deleted manually
- How to do a WP_Query when a post has a relationship to anoter post via an ACF Post Object field, where the related post is in a certain category?
- Custom ACF block only outputs commented JSON to the DOM
- Populating ACF Image Fields from JSON file
- get_posts filter meta_query using ACF Checkbox
- Field has disappeared on post page
- ACF Flexible Content with Bootstrap Carousel Repeater
- Display posts every specific day
- How to use germ_terms() with meta_query for ACF Taxonomy field?
- Hide Menu Items from guess user with ACF
- Advanced Custom Fields Gallery and Flex Slider [closed]
- Display custom image field in user profile
- wp_split_shared_term_batch messing up upgraded ACF 5 data
- Build table using Advanced Custom Fields
- wp_insert_post inside save_post adds wrong metadata to inserted post
- Custom post type meta fields missing on save_post_type
- Populate ACF repeater with current structure of pages
- Linking posts together with Advanced Custom Fields “both ways”
- Saving post meta
- Can’t get ACF repeater data in category template
- ACF scheduled repeater fields
- Get the category fields even if there is no post
- Advanced Custom Fields Show After Password [closed]
- Add routes between multiple ACF google maps markers [closed]
- Displays a string of linked images
- use advance custom field inside query post command [closed]
- Hebrew WP 3.5: plugin activated, does not appear in sidebar [duplicate]
- How to share specific data contained in repeated fields across multiple pages
- ACF gives a syntaxError unexpected token
- Using ACF on Posts Page
- Advanced custom fields if else statement
- Custom headings on WYSIWYGs per flexible content module in ACF
- Get ACF time in His format