I am Creating a metabox by using custom fields here is the code that I try but there are no fields showing in the front end. I am not getting where I am going wrong can anybody point me in the right direction.thnaks in advance
function jobs( $meta_boxes ) {
// $prefix = '';
$meta_boxes[] = array(
'id' => 'jobs',
'title' => esc_html__( 'Jobs', 'metabox' ),
'post_types' => array('post' ),
'context' => 'normal',
'priority' => 'default',
'autosave' => 'false',
);
return $meta_boxes;
}
add_filter( 'rwmb_meta_boxes', 'jobs' );
function job( $meta_boxes ) {
// $prefix = '';
$meta_boxes[] = array(
'id' => 'jobs',
'title' => esc_html__( 'Job', 'metabox' ),
'post_types' => array('post' ),
'context' => 'normal',
'priority' => 'default',
'autosave' => 'false',
'fields' => array(
array(
'id' => $prefix . 'select_1',
'name' => esc_html__( 'Filters', 'metabox' ),
'type' => 'select',
'placeholder' => esc_html__( 'Select', 'metabox' ),
'options' => array(
'all jobs' => 'all jobs',
'in progress jobs' => 'in progress jobs',
'scheduled jobs' => 'scheduled jobs',
'unscheduled jobs' => 'unscheduled jobs',
),
),
),
);
return $meta_boxes;
}
add_filter( 'rwmb_meta_boxes', 'job' );