On a custom post type, I need to show all custom fields in the admin columns. I can't figure out how to get the data to show in the "email" column.
Also, is there a way to prevent repeat submissions based on email address?
Thanks in advance!
Marge
Screen grab
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
function your_prefix_register_meta_boxes( $meta_boxes ) {
$meta_boxes[] = array (
'title' => 'Turn Off Pledge',
'id' => 'turn-off-pledge',
'post_types' => array(
0 => 'turn-off',
),
'context' => 'normal',
'priority' => 'high',
'fields' => array(
array (
'id' => 'Name',
'type' => 'text',
'name' => 'Name',
'admin_columns' => 'before title',
),
array (
'id' => 'to-email',
'name' => 'Email',
'type' => 'email',
'required' => 1,
'admin_columns' => 'replace title',
),
array (
'id' => 'your_profession',
'type' => 'taxonomy',
'name' => 'Profession',
'taxonomy' => 'profession',
'field_type' => 'checkbox_list',
'admin_columns' => 'before date',
),
),
);
return $meta_boxes;
}