How do I allow Authors and Contributors to use the metabox

Maybe they are just disabled? I’ve already seen a lot of people tripping over this one: On the top right of the edit screen you can see “Screen Options”. If you open this section you can enable and disable meta boxes. Maybe yours is deactivated? Source: Screen Options

CPT Template Option to Top

You could hook into theme_{$post_type}_templates and add an identical “default” option at the end: add_action(‘theme_page_templates’, ‘wpse_296283_theme_page_templates’); function wpse_296283_theme_page_templates($post_templates){ $post_templates[‘default’] = “Default Template”; return $post_templates; } Then you’d hide the first one with CSS: add_action(‘admin_head’ ‘wpse_296283_admin_head’); function wpse_296283_admin_head(){ ?> <style>#page_template option:first-child {display: none;}</style> <?php }

Using CMB2 Plugin to create text_date metabox (datepicker) How do I save multiple dates? [closed]

In CMB2 you can use the group type to create a repeating fields, then inside the group, you declare the text_date type. Let’s say you have an Events where you set multiple dates. $events = new_cmb2_box([ ‘id’ => ‘events_metabox’, ‘title’ => __(‘Events’, ‘text_domain’), ‘object_types’ => …, ‘show_on’ => …, … ]); $events_group_id = $events->add_field([ ‘id’ … Read more

Meta Box plugin image_advanced not showing up on frontend

I figures this out. Here is the code that worked: $images = rwmb_meta( ‘mostfilms_onesheet’, ‘type=image_advanced&size=full’ ); foreach ( $images as $image ) { echo “<img src=”https://wordpress.stackexchange.com/questions/190698/{$image[“url’]}’ width=”https://wordpress.stackexchange.com/questions/190698/{$image[“width’]}’ height=”https://wordpress.stackexchange.com/questions/190698/{$image[“height’]}’ alt=”https://wordpress.stackexchange.com/questions/190698/{$image[“alt’]}’ />”; }