The issue was in add_action('save_posts', 'mtl_todos_save');, instead it should be: add_action('save_post', 'mtl_todos_save');
Related Posts:
- Most efficient way to add javascript file to specific post and/or pages?
- Display all values of custom a field created with ACF on a page
- How to automatically apply woocommerce product title to all product images alt tags?
- If Custom Field is empty don’t display div
- How to display multiple Post meta_key/meta_values by SQL query
- How to make an meta_query optional?
- How to loop over custom fields in a page template?
- Add custom field to attachments in a specific category
- How can update custom meta for all posts
- Unique key for each row in a repeater field
- get_post_custom single array
- Make custom field meta not display if there is not data in it
- how to increase custom post value by one most efficiently?
- How can I create a list of page titles from custom meta values?
- Passing the custom field values in the wp_get_current_user array function
- Custom profile field with birthday. Troubles with
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Adding number to date not working [closed]
- How to use thumbnail size of image if I’m only using src to get image
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- auto-populating custom nav with all items from custom post type
- Trying to retrieve post meta
- Custom Field IF/ELSE PHP
- How to combine 2 php functions into one function with a custom field
- Advanced Custom Fields – display label and value only if value entered
- Is it possible to retrieve all posts with a certain value for metadata?
- Saving zero in meta box
- Can’t save php string to a custom field
- Run str_replace on title and save the output to a custom field
- if custom field doesn’t exist, use post thumbnail instead, as image background
- How to store multiple custom meta box
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Handling repeater data
- How to add data to a custom field at the wp_users table?
- Define category ID using get_post_meta
- Add a counter for mouseovers (custom field)
- Including Custom fields within the_content
- How can i make a search box to search by custom field
- Comparing Dates from custom field
- Show field if it has contents on Advanced Custom Fields
- Adding custom url to readmore link using get_permalink()
- the_meta – no get_the_meta query?
- Display movies that apear this day next
- Add “alt” Attribute to GD Star Rating Tags
- Display Custom Field in Sidebar if Value is Present
- custom header text
- Using a string from a custom field within a link
- Make separate text boxes for separate WordPress Custom Fields
- Add custom fields from different posts
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Delete images from media library when user deletes an image from ACF Gallery
- Order category posts by last word of custom field
- How can I add diffrent editable text fields?
- Display custom field value in woocommerce variable product via jQurey
- Include custom fields in search
- update_term_meta() only updating once on certain meta keys
- Block error message in foreach loop when looping through ACF field
- Generating 3 random numbers and saving them in database
- Where does php code to load data go?
- ACF – Can’t get custom post type by taxonomy
- Sum All the Post Meta of Published posts of Current Logged in user
- When working with a post, almost all wp_postmeta are deleted
- What syntax is this? “{{post.price}}”
- How to display custom field from a gallery thumbnail?
- How to use something like meta_query but for fields?
- Getting a value from a custom field from a page that shares a parent with the current page
- php if, else & custom fields – syntax error
- How to get the first letter from custom field?
- Meta box not saving spaces
- custom field meta-box with dropdown/autocomplete
- If custom field doesn’t exist, or exists and it’s true show title?
- If Elseif Query
- Outputting a custom field in PHP
- Sorting Meta Fields?
- Custom fields randomly stop working
- Display selected parts from selected pages on the frontpage?
- Where can I find the code for the menu page meta boxes?
- How to echo a different field if another field is empty?
- PHP Puzzle: Unique Styles with PHP loop
- Display custom meta box in my template file
- Metadata on the WP_Post object
- Appending an ACF custom field to the page title
- Too many if’s and else if’s ?? – Must be better way [closed]
- WP query with variables gives no result for specific user
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- I want to show image from custom field image on my custom page template
- How do I organize posts based on their taxonomy?
- Search custom post type posts only by meta fields?
- How to pass value to add_filter wpcf7_form_tag from another function?
- Custom Admin Menu Report for Specific User ID
- Shortcode Displays 2 times
- ACF number less than comparison not working
- fetch from an external api call and display results in page
- wordpress-plugin (widget) that performs a Neaby-search on the openstreetmap-endpoint: around x find y
- hide “Open in New Tab” checkbox in link field
- Want to add custom post type for facebook feed
- Custom rest fields not loaded in rest api cpt response