You are correct; WordPress will not update custom database columns using wp_update_post()
or wp_insert_post()
. Instead of creating custom database columns, consider using post meta and/or taxonomy APIs.
If you must altar the wp_posts
table, you will need to update your custom columns on your own and you may run into issues with various other plugins who don’t take the custom database columns into account.
Related Posts:
- wp_update_post() example… how to update the_content in a textarea?
- Why wp_update_post() does not update GUID?
- I need to bulk update all wordpress posts on a scheduled time
- wp_update_post does not update post_name
- How to disable saving/changing update date for certain admin users?
- “Internal Server Error” with wp_update_post
- wp_update_post using post_name
- how to get last revision id created after wp_update_post
- why wp_update_post cant update when value is empty?
- update a post with wp_update_post
- Updating posts not working
- Update a post’s info when clicking on a javascript button
- What ‘function’ will ‘update’ a post?
- wp_update_post meta causing 500 error
- Updating post_parent by id (many times)
- wp_update_post making my post sticky
- Is it possible to “Update” pages via SQL?
- Update post meta is slow while saving post
- Update post (published) date when changing category
- recursively update content
- wp_update_post ignores if/else
- $wpdb->update query incrementing value on it’s own!
- Update button (sometimes) greyed-out
- Set a post to draft once depending on a post meta value (passed certain date)?
- wp_update_post behaves differently for different user role
- Fatal error: Call to undefined function wp_cache_get after update attempt
- How to avoid infinite loop in save_post callback
- Programatically change post author
- wordpress function to change post status [duplicate]
- Post/Page Publish/Update button not clickable once I make an edit
- Issue with wp_insert_post and post_content field error Could not update post in the database
- Scheduling posts to update once per day with wp_cron
- Fill post titles from post content?
- Keeping post_date same as the pending post_date on privately publishing the post
- Update post date on every new comment?
- How to generate slugs?
- What action hook updates post meta?
- bulk post_content update
- wp_update_post on specific custom post type
- Mass Update lines of code for all posts
- Unable to modify(update) posts – Page not found
- How to check if wp_update_post was successful
- Automatically insert php function into post $the_content
- Can I edit the wp_post > post_content right before its inserted/updated?
- Updating post title using wp_update_post
- Problem with wp_update_post
- How do I batch create revisions of all posts?
- post_status => publish not working
- Change the post date from a meta box
- How Can I Set the Post Author of a Post I Just Created With PHP?
- How to show Published date and/or Modified date
- Display success message after wp_update_post
- How to catch and modify custom field values when a page is updated
- wp_insert_post_data filter hook identify current action
- Update post title with category name after editing a category
- custom post scheduler for drafts
- List taxonomy terms for post as checkboxes
- Allow Post Author to be 0 on Update
- How to bulk edit image url in featured image and product description?
- How to get the Tags on Publish post hook?
- Set post_parent value for the images uploaded by Add Media button into post
- Post author for revision not being set on update/insert
- Clear cache on post of one type when something happens to post of other type
- wp_update_post is not updating category
- How to automatic update date and time when save custom post type
- Inline style HTML attribute is being stripped from all elements of a post
- Use /prefix/postname as a slug in post_name?
- Gravity forms and wp_update_post [closed]
- Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
- Is there a before_save_post hook or something similar
- Can’t update WordPress Page if post_content is Empty
- Odd behaviour for the update button when displaying a WP_List_Table
- Update Custom Taxonomy Value for a post based on custom date field
- Custom wp_editor doesn’t update post_content
- How to keep a record of changes to a custom field?
- The work of WordPress Function update_post
- Trash Bin for Categories?
- remove_action(‘save_post’) in function that was triggered by save post not working
- Prevent other hooks from firing after wp_update_post() outside of editor
- Set post publish date by custom field
- Run a function when a custom post is update?
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- Update around 200,000 posts
- How to update the children of a post?
- Cannot update page – with too many characters?
- update flamingo_inbound post type after insert
- wp_update_post to set post IDs to drafts not working
- Front Page post mirroring revisions to other pages, constantly updating itself
- how to update editor content from metabox
- set_post_format called after wp_update_post when using bulk edit?
- Auto draft posts when scheduled date is reached
- Change custom post status to draft before today
- Setting a featured image while creating the post
- How to create posts with a specific date in bulk
- Update Post with Modified Data
- How can I use wp_after_insert_post with $current_screen?
- Suitable hook when creating, updating and deleting posts programmatically
- Taxonomy Child Not Updating Unless I Click Update Twice
- How to Auto Update WordPress Post after specific time?
- Bulk post approval and publishing doesn’t work