First get data from wp_postmeta
table
$description = get_post_meta( $post->ID, 'description', true );
Try following code to update content
$my_post = array(
'ID' => $post->ID,
'post_content' => $description,
);
//Update the post into the database
wp_update_post( $my_post );
Related Posts:
- Remove old custom field after import
- After moving my site from a dev subdomain, to root, all my custom meta data is gone
- How To Save Data From Remote APIs To ACF?
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Where are custom field values stored in the database
- Advanced Custom Fields – Get custom fields from parent page
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- So much data in postmeta
- How to position a custom field before the editor
- Display post_object content using Advanced Custom Fields plugin
- Unable to get Preview of Uploaded image within a Custom Meta box
- Edit Custom Database Tables in WordPress
- Retrieve custom fields on Categories, using WP-API
- How to delete custom field “suggestions” from dropdown list
- Order by custom field date?
- Change content before writing to database
- Register new user and add custom data row value for it
- Order Custom post type loop by custom field (datepicker)
- Using Custom Function With Advanced Custom Fields
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Problem with adding exta field in metabox in custom post type
- Copying Custom Meta Values from existing post to a duplicate post
- Advice needed for importing custom field data and database structure
- Displaying Custom Fields on Post with Genesis Child Theme
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Which is best in the following scenario : post_meta vs custom table vs parent/child posts
- Default WordPress taxonomy (Tag) – How to add a custom field to form and save it to the database
- Show ACF fields only on certain page in the backend
- How can I pass a variable set by ACF to header.php?
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Get all posts that do not have a specific custom field without using a subquery
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- Move value from one meta key to another
- Will loading too many ACF Fields cause slow down?
- Custom fields not getting saved in the databse when added to the add new user profile page
- WP_User_Query pulling ACF to loop
- How to add Advenced Custom Fields In Single Post
- How to schedule a custom field value update?
- Add new image block, set default class name and update it using Javascript
- Get an advanced custom field after post publish
- Advanced Custom Fields dynamic update_field
- WooCommerce – Adding Custom Fields To Invoice
- Is there a better way to list all database terms alphabetically?
- How to populate custom field dropdown box based on prior selection?
- Redirect to another page using contact form 7? [closed]
- When creating a metabox do you have to create DB fields for the data?
- Limit of char count in WP custom fields
- Advanced Custom Fields WYSIWYG More tag
- Walker class for sub-menu with ACF fields
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Get all the posts where meta field with multiple choice has several values checked
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Saving Post Data in Another Database
- ul list with only as many li’s as filled custom fields
- Display custom field from the front page on another page
- Let Users Filter Posts by Custom Fields
- Filter posts by custom field (Advanced Custom Fields)
- Advanced Custom fields not available yet during publish_page action
- How can I output the custom fields wrapping with HTML
- Displaying an ACF list of users
- The conditional logic only works to show or hide?
- ACF Plugin How to make the customer add more fields in the post?
- How to get custom image field of specific post id
- comments_where Hook
- Rewrite comment form post ID on submit
- How to show ACF fields in Gridbuilder custom block
- Problem with revisions only returning four results
- How to set up page fields with gutenberg instead of ACF
- ACF multi taxonomy on filterable gallery
- Is there any way to make a custom field for a post only if the author is a certain user?
- How to use ACF with javascript to update custom field values?
- adding autosave feature to custom fields
- Getting user’s data, by custom field lookup (meta)
- ACF – Compare user and post data
- Retrieving and inserting data in custom fields
- Counting number of images from loop
- How to add content with a filter when there’s no content in the editor
- Advanced Custom Fields from Category – IF statement
- Query Posts based on custom field value
- update_user_meta(): invisible data storage
- Updating custom fields with external data
- Display Child Page with custom fields within Parent Page
- WordPress taxonomy child image
- Filter and display a specific custom field value [closed]
- Fetch data from a WP page with same name as current username
- Download stuff after filling fields?
- Update field name without losing the value
- Adding custom field to an array
- Add image custom attribute [closed]
- Website that sells statistics
- How to create a searchable database with a single-field search box at the front end? [closed]
- Truncating characters in Advanced Custom Fields works some places but not others?
- 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