- This topic has 2 replies, 2 voices, and was last updated 1 year, 10 months ago by .
-
Topic
-
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!
Margeadd_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; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.