This has to do with auto saving. You need to check the following before saving your fields:
if ( ! isset( $_POST['action'] ) || $_POST['action'] != 'editpost' || 'revision' == $post->post_type )
return;
Related Posts:
- WP doesn’t show Array Custom Fields?
- Add new “Insert Into Post” button with another function
- Add meta data to the menu
- can you set a default value to a custom field
- Guest Author – How can I use custom fields to create guest author link?
- post meta data clearing on autosave
- Add input field to ‘Pages > Edit Page’ through functions.php
- Auto-add paragraphs to custom field?
- Add description text under input field for new profile fields
- How to add a predefined custom field without using a plugin?
- Populate Custom Field Dropdown on Theme Install?
- How to add content at the end of posts?
- how to put a custom field value in variable
- Auto Populate Custom Field with Complex Value That Increase by One?
- Custom Metabox Not Saving
- Getting the ID of any image for use in functions.php
- Auto-remove custom field with no value on publish
- Display custom field values from posts on frontpage
- Specific coditional usage [closed]
- Hide custom fields when empty
- How to disable Edit Post and Allow only Custom Field?
- Custom metabox not working
- Stripping and/or altering the content of a custom field (video URL)
- Odd functions.php issue in WordPress
- Calling Custom Field within Function wrapped with Divs.
- Get fields from metabox array
- Including inline Custom Fields info with add_filter in functions.php
- How to automatically create a custom field when a post is published?
- Where are custom field values stored in the database
- Using TinyMce with textareas in meta boxes on custom post types
- ACF – get_field() using ‘option’ as post_id not working
- How to set a default meta value for custom field
- Create meta boxes that don’t show in custom fields
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- wp_editor in add_meta_boxes does not show gallery
- Function to Download External Images to My Site
- Deleting a custom field field
- custom field to always to .get_the_title()?
- Displaying posts with only upcoming dates according their custom field date value
- How to filter a dd/mm/yyyy date from a custom field in a query
- Get a post_id where meta_value equals something in a serialized meta_value field
- List posts with common custom field value
- Is it bad to use a lot of Custom Meta Fields?
- Create a post in custom post type using field in registration form after users submit form
- How can I sort homepage by a meta value?
- Passing the custom field values in the wp_get_current_user array function
- Custom Fields – Taller editing area
- How to add Advenced Custom Fields In Single Post
- Get updated meta value after post update or published (custom post type) using hook
- custom-meta-box checkboxes from loop won’t save
- Custom dropdown field added to media gallery; how to get it to save properly?
- Uploading PDF using Media Uploader
- Correct syntax for retrieving custom field in CPT
- $TBA Getting Translated to $0 (Custom Fields)
- How Do I Display A Custom Field In The Sidebar Of All My Pages?
- Hide text if one custom field out of two is empty [closed]
- How to check if a PHP string is different than meta field?
- Custom Field – Do Not Show if Value is Empty?
- Displaying Meta-Box Data Properly
- wp custom field date format compare
- frontend submit post jQuery clone row won’t save
- Include one custom field in search results
- Custom search SQL Query to add custom field in result
- Search Results Page – Displaying Custom Meta Fields
- using advanced custom field to control css hover color
- Custom Field data only shows after manual post update
- Custom field Search with Relavanssi
- How to exclude custom fields from search queries?
- Add Custom Fields After Page Title
- Footnotes in custom fields
- How to show content of custom fields in search results?
- simple fields plugin custom query
- Is it possible to update the dataset using update_post_meta
- Set class if a meta value is set within post archive
- Filtering posts by ACF meta query
- Get field in readable word
- checking liked user in wordpress rest api
- Hide empty custom field
- How to display selected option from dropdown list in a metabox
- How to use a custom field with add_rewrite_rule()?
- User custom meta delete by serialised key value
- Metabox value for post loop?
- How to add a default field Name to post Custom Fields
- How to add meta fields to custom taxonomy add/edit page?
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Custom Post Field -> Returning only the word “array”
- Register author, facebook connect, publish posts from front end
- Extend WP_Customize_Control with Multiple Field Control
- How to use page metadata while using wp_list_pages()?
- Validating custom meta boxes with jQuery results in posts being saved as draft instead of published post
- Running a Gallery Shortcode in a Custom Fields Widget
- How can I create more “create attachment” custom field – any idea?
- How to show custom field and parent post id in wordpress attachment page (image.php)
- How to get the value of particular get $meta value in wordpress
- custom field as a boolean with a checkbox?
- Hiding custom fields when content is empty [closed]
- Website that sells statistics
- Extract array from custom field
- Dynamically update Custom Fields to display new dates
- save all acf options in one meta_value [closed]