This is the normal behavior.
ACF field value will not be added directly in your post until you save it. I’ve been facing this “issue” lately.
this is because you have created your field after your posts. So, your posts don’t have the associated value.
load_field doesn’t add values on existing post, it only add your value on the post form edition.
What I suggest, is that you can do a one-shot function that update all your posts in a second.
foreach(get_posts($args) as $post) {
$data[] = ... // your event data
update_field('your_field_group', $data, $post->ID);
}
be careful here, you might want to use add_row function instead of the update_field (depending on your needed)
https://www.advancedcustomfields.com/resources/add_row/
Related Posts:
- Change content before writing to database
- Let Users Filter Posts by Custom Fields
- How to show ACF fields in Gridbuilder custom block
- How to add content with a filter when there’s no content in the editor
- Filter and display a specific custom field value [closed]
- How to filter post using custom feild value in shortest and longest duration?
- Query Posts Via WordPress URL
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Is there any action filter/hook for validating a custom field before publishing the post?
- Filter WP_Query for posts having a certain meta-value
- Advanced Custom Fields – Get custom fields from parent page
- Add custom field to the archive page?
- Apply the_content filter to a custom field with multiple values
- Matching Serialized Arrays with meta_query
- Pass all custom fields through the same filter on post load?
- Display post_object content using Advanced Custom Fields plugin
- Remove old custom field after import
- Unable to get Preview of Uploaded image within a Custom Meta box
- WordPress Search Custom Meta Field Only
- Order Custom post type loop by custom field (datepicker)
- Using custom fields in a filter hook
- Using Custom Function With Advanced Custom Fields
- Add an advert every nth Paragraph
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Login & Register & Custom details WITHOUT plugin
- Saving custom profile fields
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- How to validate custom field on lost password form before the user id field?
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- ACF: How to get the full field name (meta_key) by a field key?
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- global function to apply filter to custom field
- How to order posts by one custom field and filter them by another one?
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- Order RSS content by an advanced custom field value
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- WooCommerce – Adding Custom Fields To Invoice
- Filter multiple custom fields Values with Check boxes
- Sort custom post type by multiple custom fields
- Redirect to another page using contact form 7? [closed]
- How to Wrote Simple Calculations by Using Custom Fields in Loop?
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Best filter to use for modifying custom fields on a post?
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- How to display childrens custom fields?
- Access ACF fields within custom preview function?
- How to copy data from a custom field to the post_content?
- WordPress creates new lines in postmeta table on post update
- Sort posts by clicks on download button
- ul list with only as many li’s as filled custom fields
- Display custom field from the front page on another page
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Advanced Custom fields not available yet during publish_page action
- How can I output the custom fields wrapping with HTML
- The conditional logic only works to show or hide?
- ACF Plugin How to make the customer add more fields in the post?
- Custom Theme Fields in Settings Menu – apply filters to one of those fields?
- How to change permalink on headlines in rss feeds?
- How to get custom image field of specific post id
- How to change order of posts in admin
- How to query posts by month based on date custom field?
- Filter or order based on custom field
- Rewrite comment form post ID on submit
- ACF field group not showing in page
- What am I missing in this Code Block?
- get_field values for each post on home page using wp_add_inline_style
- Problem with revisions only returning four results
- How to set up page fields with gutenberg instead of ACF
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- ACF multi taxonomy on filterable gallery
- How to use ACF with javascript to update custom field values?
- Weird custom fields data lost
- Retrive acf fields in publish_post action for wp_mail
- User Filter Options on Archive Page
- Getting user’s data, by custom field lookup (meta)
- How to delete attachments associated with custom field type when post property changes? [closed]
- Counting number of images from loop
- Page template is missing fields or is invalid when I updating the template
- Advanced Custom Fields from Category – IF statement
- display Flexible Fields from options
- Display Child Page with custom fields within Parent Page
- WordPress taxonomy child image
- change attachment custom field onChange event
- How to Order Posts by Custom Fields?
- Get custom field from other post in carousel
- I want to add a custom field in the rss title of each post, but don’t want it to be shown on the site
- Including inline Custom Fields info with add_filter in functions.php
- Sort posts after filtering them through multiple taxonomies
- Update field name without losing the value
- Advenced custom fields auto fill problem
- save all acf options in one meta_value [closed]
- Conditional display based on ACF checkbox
- How to add an ACF only for parent term?
- Best way for managing images of ads banners
- ACF in radio button cf7