I’ve sort of done this with using the same function to save the meta on the post screen and also on the quickedit. In your case I think you need to add an or
clause to your nonce validation.
if (!wp_verify_nonce($_POST['home_meta_box_nonce'], basename(__FILE__)))
return;
as
if (!wp_verify_nonce($_POST['home_meta_box_nonce'], basename(__FILE__)) || !wp_verify_nonce($_POST['home_meta_box_left_nonce'], basename(__FILE__)) )
return;
Then you could check if the appropriate meta is posted and update for each box.
Related Posts:
- Adding another state (spam, reject, approve) to wordpress comments?
- Problem in custom meta boxes
- Multiplile values checkbox or select in custom meta box
- I need a “Choose from existing content” popin
- How can I hide custom field from users used for caching response from external api?
- Let’s Create Custom Field Template Documentation
- MetaBox not saving after empty
- Custom meta boxes not saving
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Make separate text boxes for separate WordPress Custom Fields
- Save input form on custom field
- When post is updated, custom metadata in text area field is overwritten
- Add validation and error handling when saving custom fields?
- Is there a way to set default custom fields when creating a post?
- Individual Widgets per Page
- How to add add_meta_box to specific Page Template?
- Arrange custom fields with drag and drop?
- Unable to get Preview of Uploaded image within a Custom Meta box
- extend Meta Box / Document Panel
- Edit Custom Database Tables in WordPress
- How to store the value of a custom field dropdown select for post referencing?
- Add multiple images to a page sidebar
- 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
- How to show custom field’s value under post/page title in wp-admin
- Create custom field key upon theme activation
- ajax delete value from custom field array
- How do I read the value of a custom field of the page?
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- add meta box using function.php
- get_post_meta in sitewide tags plugin fails to return value for custom fields
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- Delete all custom fields at once?
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- Odd PHP Code To Display HTML Of Meta Box [closed]
- Custom Taxonomy to dropdown box on adminside wordpress
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- query usermeta from custom field
- Can’t get metabox value (a url) returned using WPAlchemy
- Displaying a checkbox array from advanced custom field
- WP 3.1 meta_query for multiple custom field values
- Sort custom field by post
- Cannot save CPT meta box
- How do i add custom fields to my themes template file?
- Custom tables or custom fields?
- Post selector as Custom Field
- 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?
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- 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
- Is there a way to set default custom fields when creating a new post?
- 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
- Showing Custom Fields on Parent Page
- How to validation for sanitize_URL?
- How can I output the custom fields wrapping with HTML
- put saved metabox values back into fields and then display on the front end
- Custom metabox not working
- Show array of meta_value in Edit Post Coloum
- Display metabox title for custom fields with values
- Custom Field & Gravity Forms [closed]
- Custom field bug in WordPress 3.2
- Working with multiple values and metaboxes
- How to sort post listing on a page using custom field value?
- Odd functions.php issue in WordPress
- Gutenberg add a custom metabox to default blocks
- Move the metaboxes to the very top of post editor
- How to improve my non-unique metadata MySQL entries?
- Add forms dynamically in admin pages?
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- 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
- Can’t save meta field value if the title not set
- Change post template the proper way
- Display Data From This Custom Media Upload Meta Box?
- Delete custom fields on post publish?
- Adding custom fields to images
- Custom fields are not displaying in page with multiple loops
- My meta boxes update wp_postmeta of posts but not of pages. What is wrong with the code?
- Using Hooks. Thematic
- Custom field in a shortcode?
- I want my post to republish again after adding a custom field
- Check if a field is capitalized?
- Google not index my Custom 404 page ?why?
- Add fields to edit in custom widget