Apparently in order to get the meta value right after saving the post, you have to either get the $_REQUEST[‘my_meta_value’] directly, or, if you need to update the database right away, you have to use update_post_meta() in your save_post action.
Related Posts:
- Check before publishing, if already exist post with current custom field value
- Better post meta efficiency?
- post meta data clearing on autosave
- Display info from custom fields in all images’ HTML
- Update meta values with AJAX
- Allow only one post with specific meta value
- How to validate select field in post meta?
- change attachment custom field onChange event
- Add validation and error handling when saving custom fields?
- How to get custom post meta using REST API
- Is there any action filter/hook for validating a custom field before publishing the post?
- The “_encloseme” Meta-Key Conundrum
- Using get_post_meta with new_to_publish
- Can I count the number of users matching a value in a multiple value key?
- Auto sort the wp-admin post list by a meta key
- Allow user to create instances of custom field
- getEntityRecord without knowing the post type
- Save HTML formatted data to post meta using add_post_meta()
- Up/Down voting system for WordPress
- Save attachment custom fields on front end
- Check if the value of a field has changed on save_post
- Transition from (classical) serialized custom meta field to (gutenberg) rest enabled meta
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Custom field value based on other custom field values
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- Saving custom image meta fields
- Get all meta keys assigned to a post type
- Adding custom fields (post meta) before/during wp_insert_post()
- Combine multiple custom field values into single value
- How to query posts with certain custom meta data, and output Post data
- post meta getting deleted on save
- Can’t get post ID using wp_insert_post_data
- Unique Post Meta Values
- meta_compare seems to be treating values as strings instead of integers as expected
- Limit the number of acf content when displaying in post loop [closed]
- How to add custom metadata text box dropdown to sidebar in Gutenberg editor for all post types
- Add post meta fields, when creating a post using WordPress’ REST API
- Store array as single, serialized post meta field or many post meta fields?
- Custom Field Values not updating unless I click “Update” twice
- update_post_meta for repeated custom field [closed]
- Trying to update_post_meta function
- Show values of custom post meta on ‘Add new post’ page?
- get_posts in meta box dropdown not showing latest posts
- Display Custom Meta Box Field Only If Value is Present
- Ordering posts by custom field named “date” in backend
- Unique meta_key with array value vs repeated meta_key with single values
- Can’t save custom field on registration page
- What is the proper way to add a required field to a post type? [duplicate]
- Custom metabox not displaying multiselect data in edit mode
- How to display childrens custom fields?
- how to display custom fields of post on a web page
- How do I query the title (or handle?) of post meta fieldset (created with Simple Fields Plugin)
- How to fill custom fields with brackets in their key with add_post_meta()?
- Looping inside block return
- change order of images attached to post
- how can I show name and value of Custom Fields together?
- No result update a custom field using wp_schedule_event
- Gravity Forms Update post meta from template [closed]
- put saved metabox values back into fields and then display on the front end
- Best way to achieve multiple links in a post title
- How to get custom image field of specific post id
- wordpress multi user question
- Conditionally run function based on custom meta value?
- How can I change author of posts to the value of one of the custom field of the posts?
- Adding Custom Metadata to my Archive/Posts page
- How to improve my non-unique metadata MySQL entries?
- Issue migrating a checkbox-type meta field to the block editor
- Why isn’t update_post_meta saving?
- Saving Custom Field that includes Quotation marks
- update a custom field with the value of another existing custom field
- Custom Fields Not Showing (ACF not installed)
- SQL query to change the value of a Custom Field
- Post meta data not showing in frontend, until hitting ‘update’ button
- searching by keywords in post’s metas or pagination links problem
- Add custom field information to source meta data
- How do I update custom field post meta in frontend post template?
- How to Find List of Available Custom Fields for Theme?
- update meta field value after
- Custom Fields Not Working In Footer
- ACF plugin and field update
- Delete custom meta
- Echo out custom fields in comments
- Why WordPress takes time to make request to save post?
- Search one custom field?
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- Save values generated via API as custom meta fields
- Adding custom fields to images
- How to save dynamically generated value in post type?
- update_post_meta not working in action hook
- how to show this part only in the single post page?
- Display meta data from a custom field within plugin Category Grid View Gallery
- Custom fields / meta box output
- If post custom meta data is not set, show normal state
- How do i output images from URL’s added to the same custom field key
- Colecting values from custom field checkboxes and displaying them in the post
- custom field with links
- add multiple values (array) to post meta_input
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)