Try adding this save function to see if it saves data
function save_custom_artiesten_metabox_on_reload() {
global $post;
if (isset($_POST['oa_datum']) && isset($_POST['oa_aanvang']) && isset($_POST['oa_locatie']) && isset($_POST['oa_toegang_prijs'])) {
update_post_meta($post->ID, 'oa_datum', sanitize_text_field($_POST['oa_datum']));
update_post_meta($post->ID, 'oa_aanvang', sanitize_text_field($_POST['oa_aanvang']));
update_post_meta($post->ID, 'oa_locatie', sanitize_text_field($_POST['oa_locatie']));
update_post_meta($post->ID, 'oa_toegang_prijs', sanitize_text_field($_POST['oa_toegang_prijs']));
}
}
add_action('admin_init', 'save_custom_artiesten_metabox_on_reload');
Related Posts:
- How to store the value of a custom field dropdown select for post referencing?
- Get updated meta value after post update or published (custom post type) using hook
- custom-meta-box checkboxes from loop won’t save
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- added a meta box to post however when saving menu while debug on throws a warning
- Add validation and error handling when saving custom fields?
- Custom field/meta populated by dropdown of existing posts?
- What is the index [0] for on post meta fields?
- Individual Widgets per Page
- Gutenberg add a custom metabox to default blocks
- How to add add_meta_box to specific Page Template?
- Custom field metabox not showing in back-end
- How to hide meta box values from custom fields list?
- Adding another state (spam, reject, approve) to wordpress comments?
- Arrange custom fields with drag and drop?
- Unable to get Preview of Uploaded image within a Custom Meta box
- Using media-upload.php to upload mp3 via custom fields
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- Get updated meta data after save_post hook
- Custom Meta Boxes: Store two values in one repeatable field
- Check before publishing, if already exist post with current custom field value
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- Problem in custom meta boxes
- Multiplile values checkbox or select in custom meta box
- Create custom field key upon theme activation
- Custom fields to save multiple values
- Check if the value of a field has changed on save_post
- Undefined index error when saving content on metabox
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- add meta box using function.php
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- wp_editor removes paragraph from custom meta box
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Where did the Add New Custom Field go?
- Admin meta Image Path
- Odd PHP Code To Display HTML Of Meta Box [closed]
- Better Method for Multiple Meta Boxes
- how to fetch the meta field keys/meta boxes from a post type?
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- Can’t get metabox value (a url) returned using WPAlchemy
- Button inside Custom Meta Box triggering the Update Button
- Custom Metabox additional item
- get_posts in meta box dropdown not showing latest posts
- Display Custom Meta Box Field Only If Value is Present
- When creating a metabox do you have to create DB fields for the data?
- Set checkbox as checked by default in a metabox
- Singleton Custom Field (Meta Box)
- Allow only one post with specific meta value
- What is the proper way to add a required field to a post type? [duplicate]
- What do the numbers mean at the end of add_action(‘save_post’)…?
- Is it preferable to use custom code to create metaboxes instead of plugins (such as ACF) and if so why? [closed]
- Values entered in a meta box aren’t saved
- How add multiple wp_editor_box to new post
- Scripts and tags will not save or output from my custom meta box
- Using WP Color Picker in Repeatable Fields
- MetaBox not saving after empty
- Displaying pages with a specific custom meta
- How do I save Multiple fields in a meta box?
- Enable a short code in the custom meta field
- How to validation for sanitize_URL?
- put saved metabox values back into fields and then display on the front end
- Custom metabox not working
- Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Show array of meta_value in Edit Post Coloum
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- How to display data from custom fields I created?
- Display metabox title for custom fields with values
- WP E-Commerce Custom Meta > Serialized array
- Custom Field & Gravity Forms [closed]
- Working with multiple values and metaboxes
- Gutenberg add a custom metabox to default blocks
- HTML for adding a meta box (basic text field) to page editor?
- Move the metaboxes to the very top of post editor
- How to improve my non-unique metadata MySQL entries?
- Adding text box with add_meta_box
- Add forms dynamically in admin pages?
- update a custom field with the value of another existing custom field
- add meta box considers the selected option as post parent
- How do I display a custom field in an existing form on the front end?
- get wordpress post loop by meta box date
- Sub Field of File Field
- If metabox fields has content display content
- Why WordPress takes time to make request to save post?
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- Call the latest posts from a custom field group to be displayed on front-page
- My meta boxes update wp_postmeta of posts but not of pages. What is wrong with the code?
- I want my post to republish again after adding a custom field
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How to add new Metadata options (Date, Author, etc.) for Posts?
- Saving multiple custom meta box fields