I know save_post is called twice when a post is saved. The fact that die() solves your problem indicates that the second call is undoing the first, perhaps?
save_post will also be called on autosave, so you might want to eliminate those too.
Related Posts:
- Adapting plugin for custom post type?
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Do I need a nonce field for every meta box I add to my custom post type admin?
- How to change default position of WP meta boxes?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Custom Taxonomy as checkbox or dropdown
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Multiple Custom Metabox Help
- How to force one column layout on custom post type edit page?
- Can you make a custom metabox field be required to save a new post?
- Why won’t my metabox data save?
- Custom Post Type – Taxonomy Dropdown Menu?
- Action hook on Edit custom post type?
- wp_dropdown_categories in custom post type with custom taxonomy
- Display content from custom meta boxes in revisions
- How can I add a column/s to wp_posts table?
- How to add meta box to backend menu page
- Get terms that contain posts that in turn belong to other terms?
- How to add multiple images to a custom post type single post?
- echo value from ‘select’ field type into page template using cmb2?
- How to add multiple images to custom post type?
- Listing Pages With Checkboxes In a Metabox (and saving them)
- Changing the priority of a custom taxonomy’s metabox
- How do I remove all the metaboxes for a custom post type?
- WP_List_Table Inside Metabox Not Working on Submit
- How To Set Custom Post Type Title Without Supports
- Custom post type metabox array
- Add metabox with media uploader in a custom post type [duplicate]
- Creating a Custom Post Types dropdown in a Meta Box
- Remove tabs from media uploader for a CPT
- Find callback function for custom taxonomy metabox
- Remove custom metaboxes from custom post type
- wp_generate_attachment_metadata gives me an empty array
- How to get custom metabox image field?
- Get all posts from custom post type and insert in select input as metabox
- Shared Custom post type between WP network sites
- Custom meta-box for all custom post types
- Edit post meta direct from post.php?
- How can i embbed two different galleries in custom post type
- How to Arrange Support => Thumbnail
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Add different meta box based on taxonomy
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Custom sortable pages on custom post type
- Repeatable WordPress custom fields in a metabox
- Meta-Box to add multiple items one at a time and on publish save all
- Toggle a metabox based on a selection
- Display a post count from a custom metabox selection
- WPAlchemy Metabox rewriting slug
- Query Distinct Taxonomies of Custom Post Type
- Custom metabox value not saving
- Add multiple custom meta boxes to different custom post types
- Custom post type Featured Image popup not working
- Displaying wp post categories into my custom metabox
- Yearly Archive from a custom date metabox (Event Start Date)
- Need to build custom metabox select prev posts by category
- How to bring custom meta boxes to custom post types?
- Select custom post by meta value
- Make meta box appear if the previous if not empty?
- Filter CPT based on meta box value using Flexible Posts widget?
- Custom post type in submenu with custom meta box as a title with custom html
- Problems with a custom meta_box
- Add Metabox to all custom post types
- Customized featured image doesn’t refresh in post admin metabox after upload/insert
- Retrieve post data via WPDB class
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Loading one meta box only on post-new.php with a forward link
- Custom post type – permalink
- Textarea type on one field custom add_meta_box?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- loop through custom post-type with two meta_keys
- Extending a CPT by Created by another plugin
- How to query custom post then display sections by meta value
- Custom meta box includes
- Creating entries with image attachements within posts and managing them in a list
- Post AND page parameter for WP function
- Add text to metabox input text field from Thickbox
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- CPT Metabox with email notification
- Trying to display posts by authors in with specific user meta
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- add a “list” into add meta box : problem
- Move title “meta box” in post mode
- CPT Template Option to Top
- Show search for data extracted from metabox
- Use a Variable in update_post_meta as the $meta_key
- Display div based on Group metabox selection [closed]
- Issues on saving data from CPT select metabox
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Canot save post if any meta box was empty
- Remove custom meta boxes from custom post type
- Multiple posts selection [closed]
- Cannot change meta box position
- Just the First Metabox what saves the data!
- How to consume external API from WordPress post editor and display the response data in the custom field?
- My custom meta box with textarea field not saved
- custom post type with metabox custom fields
- How to show metabox in custom php menu page
- Can’t retrieve custom post type taxonomy term to custom post type editor