No ones was answering so i installed this plugin MetaBox.io
and I’ve generated this code below that worsk very vell.
function arrivo_metabox( $meta_boxes ) {
$prefix = 'arrivo-';
$meta_boxes[] = array(
'id' => 'arrivo',
'title' => esc_html__( 'Data di arrivo in negozio', 'porto-child' ),
'post_types' => array( 'riparazioni' ),
'context' => 'side',
'priority' => 'default',
'autosave' => false,
'fields' => array(
array(
'id' => $prefix . 'data_arrivo',
'type' => 'date',
'name' => esc_html__( 'Data arrivo in negozio', 'porto-child' ),
'js_options' => array(
'dateFormat' => 'dd/mm/yy',
'dayNames' => '[ "Domenica", "Lunedì "Martedi", "Mercoledì", "Giovedì", "Venerdì", "Sabato" ]',
),
'class' => 'data-arrivo',
),
),
);
return $meta_boxes;
}
add_filter( 'rwmb_meta_boxes', 'arrivo_metabox' );
Related Posts:
- echo value from ‘select’ field type into page template using cmb2?
- Tracking changes in admin-page so user gets warning when leaving the page
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Extending a CPT by Created by another plugin
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Development of a WordPress Search Plugin – Best Practices
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I add a column/s to wp_posts table?
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- How to sort CPT by custom meta value (date), and return posts month by month
- Backend search; include CPT meta?
- Use Custom Post Type as Custom Field
- Saving multiple Metabox contents
- How to programatically set the post title of a CPT on wp-admin
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- Metabox saving values
- add_meta_box: Datepicker like the one for postdate?
- update custom post type meta from a shortcode
- Displaying Meta Box Image
- Multiple information using custom post type
- how to set default value for checkbox in wordpress
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Display custom post on home page based on a metabox selection
- How to have the right design for a custom post type without accessing themes
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Why do I lose the content of meta boxes when I leave the page?
- Dynamically add / duplicate custom meta in custom post types
- WordPress custom meta field for custom post not storing data
- How to Duplicate (multiple meta box)?
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- List of Posts in a Custom Field
- Save an array from drop-down in custom meta box
- Populate Custom Fields in a Custom Post Type?
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- How to check if user meta field is empty in conditional else statement
- Replace text in post from cvs
- dynamically add a custom field or metabox to custom post type [duplicate]
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- A better way to add a meta box to custom post types
- Plugin – Combine Meta Box Input Fields into single saveble record
- Metabox not show in categories custom post type cmb2
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Cannot save CPT meta box
- Adding Page Templates to post but it ignored it
- How to Add multiple instance of meta box to custom post type
- Permalinks: custom structure for taxonomy – tags?
- Custom fields for custom post type
- Custom “radio button meta box” not saving correctly
- Add additional field to custom post_type
- Custom Post Meta from custom metaboxes is randomly being deleted
- Custom Field values not Showing in Edit Page of Custom Post Type
- Add a custom meta box for client to order CPT posts how they want
- How to create multiple editor?
- create custom meta box with default value
- ACF in wordpress
- Create metaboxes based on custom post type
- CMB2 metabox create select with list of post from CPT
- Modify Posts from Custom_Post_Type within the plugin
- Custom post type in Custom widget – $listItem
- Get custom term meta problem on single post type
- Custom post types, disable fields
- Display custom meta on page that has been check in custom post type
- Multiple wp_editor instances in custom post type using Ajax
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Change Post Meta via AJAX from the posts list table
- Add a class to post_class if more than one post shares same meta_value_num
- Add a meta field to the list of results for a custom post type
- Saving metabox keys and storing values as array
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Sort custom post column by generated value?
- How to avoid duplicate posts queried from custom meta?
- Problem with multi checkboxes value in metabox?
- Multiple useres editing specified content
- Show Post columns to specific users on condition
- Run query on specific admin options page and send results to select field in another function
- check_admin_referer not working in custom meta box for custom post type
- Create Inclusions and exclusions
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Avoid another meta box in my custom post type
- Custom Fields as Post Type Options
- Search form to find custom meta box generated data
- Custom Info Box at end of posts?
- Custom post type won’t take my custom fields
- Filter CPT based on meta box value using Flexible Posts widget?
- Textarea type on one field custom add_meta_box?
- How can i do custom author list?
- loop through custom post-type with two meta_keys
- Creating entries with image attachements within posts and managing them in a list
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- Retrieve a post with its ACF repeater fields in wordpress
- How to consume external API from WordPress post editor and display the response data in the custom field?