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
- 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
- Keep display metadata value on backend – Custom Metabox
- How to check if user meta field is empty in conditional else statement
- Replace text in post from cvs
- Why is my select meta data not saving?
- dynamically add a custom field or metabox to custom post type [duplicate]
- Visual editor issue by having multiple tiny mce editors in a CPT
- 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
- Addition of custom option panel crashes Media Library & Admin Area
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- Dynamic dropdown select values depending on other custom field value
- Grouping metadatas into one
- 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
- It’s possible to hide body copy box for a custom post type?
- 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?
- Custom post type, have only my meta boxes
- Display Repeatable Meta Box Content
- create custom meta box with default value
- ACF in wordpress
- Create metaboxes based on custom post type
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- CMB2 metabox create select with list of post from CPT
- Modify Posts from Custom_Post_Type within the plugin
- Reusable metabox backend and frontend
- 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
- How can I output WPAlchemy repeating fields meta values in my page template?
- Multiple wp_editor instances in custom post type using Ajax
- Questions regarding add_meta_box()
- Adding an extra parameter [string] to my posts’ permalink?
- 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
- Empty meta-box returns publishdate if no value is set?
- Saving metabox keys and storing values as array
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- 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?
- Custom Metabox Info Not Saving
- PHP Warning with Custom Fields
- Problem with multi checkboxes value in metabox?
- Restrict Custom Post Type to One Item
- 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
- Custom post type that lets users create a set of posts?
- 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)
- Custom Fields through plugin in a Custom Post Type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Avoid another meta box in my custom post type
- Delete custom post type metadata without deleting the post in admin area
- 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
- Show a custom field instead of username in the backend author area
- Filter CPT based on meta box value using Flexible Posts widget?
- Textarea type on one field custom add_meta_box?
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How can i do custom author list?
- loop through custom post-type with two meta_keys
- Custom meta box includes