Created
July 16, 2014 15:11
-
-
Save tomfinitely/f2f5f5508dacdd885244 to your computer and use it in GitHub Desktop.
Faculty & Video ACF Fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(function_exists("register_field_group")) | |
{ | |
register_field_group(array ( | |
'id' => 'acf_faculty-directory', | |
'title' => 'Faculty Directory', | |
'fields' => array ( | |
array ( | |
'key' => 'field_537a538dd069f', | |
'label' => 'Basic Info', | |
'name' => '', | |
'type' => 'tab', | |
), | |
array ( | |
'key' => 'field_5388e81568397', | |
'label' => 'First Name', | |
'name' => '_faculty_first_name', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_5388e82968398', | |
'label' => 'Last Name', | |
'name' => '_faculty_last_name', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e4e34cf025', | |
'label' => 'Faculty Image', | |
'name' => '_faculty_image', | |
'type' => 'image', | |
'save_format' => 'object', | |
'preview_size' => 'medium', | |
'library' => 'all', | |
), | |
array ( | |
'key' => 'field_537a5333a5785', | |
'label' => 'Title', | |
'name' => '_faculty_position', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537a53c4d06a1', | |
'label' => 'Office/Location ', | |
'name' => '_faculty_location', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537a53d4d06a2', | |
'label' => 'Phone', | |
'name' => '_faculty_phone', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e21a720945', | |
'label' => 'Email', | |
'name' => '_faculty_email', | |
'type' => 'email', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
), | |
array ( | |
'key' => 'field_538cd1398f3d4', | |
'label' => 'Alternate Email', | |
'name' => '_faculty_alt_email', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e21ba20946', | |
'label' => 'Employed Since', | |
'name' => '_faculty_employed_since', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e23f52cadb', | |
'label' => 'Expanded Info', | |
'name' => '', | |
'type' => 'tab', | |
), | |
array ( | |
'key' => 'field_538df650d3b5d', | |
'label' => 'Faculty Teaser', | |
'name' => '_faculty_teaser', | |
'type' => 'wysiwyg', | |
'instructions' => 'For OMC Use Only', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_537e24592cade', | |
'label' => 'Professional Highlights', | |
'name' => '_faculty_professional_highlights', | |
'type' => 'wysiwyg', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_537e24d72cadf', | |
'label' => 'Personal Highlights', | |
'name' => '_faculty_personal_highlights', | |
'type' => 'wysiwyg', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_537e21d820947', | |
'label' => 'Personal Quote', | |
'name' => '_faculty_quote', | |
'type' => 'wysiwyg', | |
'instructions' => 'A quote from yourself for the students and community.', | |
'default_value' => '', | |
'toolbar' => 'basic', | |
'media_upload' => 'no', | |
), | |
array ( | |
'key' => 'field_5386533169d7e', | |
'label' => 'Educational History (OLD)', | |
'name' => '_faculty_educational_history_old', | |
'type' => 'wysiwyg', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_537e21fe20948', | |
'label' => 'Educational History', | |
'name' => '_faculty_educational_history', | |
'type' => 'repeater', | |
'sub_fields' => array ( | |
array ( | |
'key' => 'field_537e22aa10408', | |
'label' => 'School', | |
'name' => '_faculty_education_school', | |
'type' => 'text', | |
'column_width' => '', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e232e1040b', | |
'label' => 'Degree', | |
'name' => '_faculty_education_degree', | |
'type' => 'text', | |
'column_width' => '', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e23011040a', | |
'label' => 'Major', | |
'name' => '_faculty_education_major', | |
'type' => 'text', | |
'column_width' => '', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
array ( | |
'key' => 'field_537e22be10409', | |
'label' => 'Year Graduated', | |
'name' => '_faculty_education_attended', | |
'type' => 'text', | |
'column_width' => '', | |
'default_value' => '', | |
'placeholder' => 'ex. 2000-2004', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
), | |
'row_min' => '', | |
'row_limit' => '', | |
'layout' => 'table', | |
'button_label' => 'Add Row', | |
), | |
array ( | |
'key' => 'field_537e240d2cadc', | |
'label' => 'Fields of Expertise', | |
'name' => '_faculty_fields_of_expertise', | |
'type' => 'wysiwyg', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_537e24f62cae0', | |
'label' => 'Recommended Links', | |
'name' => '_faculty_recommended_links', | |
'type' => 'wysiwyg', | |
'default_value' => '', | |
'toolbar' => 'full', | |
'media_upload' => 'yes', | |
), | |
array ( | |
'key' => 'field_538cc9961a128', | |
'label' => 'Conservatory', | |
'name' => '', | |
'type' => 'tab', | |
), | |
array ( | |
'key' => 'field_538cc9b61a129', | |
'label' => 'Applied Area(s)', | |
'name' => '_conservatory_applied_areas', | |
'type' => 'textarea', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'br', | |
), | |
array ( | |
'key' => 'field_538cc9f11a12b', | |
'label' => 'Teaching Area(s)', | |
'name' => '_conservatory_teaching_areas', | |
'type' => 'textarea', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'br', | |
), | |
array ( | |
'key' => 'field_538cca271a12c', | |
'label' => 'Conservatory Professional Highlights', | |
'name' => '_conservatory_cv_highlights', | |
'type' => 'textarea', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'br', | |
), | |
array ( | |
'key' => 'field_538ccb011a12f', | |
'label' => 'Ensembles', | |
'name' => '_conservatory_ensembles', | |
'type' => 'textarea', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'br', | |
), | |
array ( | |
'key' => 'field_53bc05f504e1a', | |
'label' => 'Divisions', | |
'name' => '_conservatory_divisions', | |
'type' => 'textarea', | |
'default_value' => '', | |
'placeholder' => '', | |
'maxlength' => '', | |
'rows' => '', | |
'formatting' => 'br', | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'post_type', | |
'operator' => '==', | |
'value' => 'faculty', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
array ( | |
array ( | |
'param' => 'post_type', | |
'operator' => '==', | |
'value' => 'faculty', | |
'order_no' => 0, | |
'group_no' => 1, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'acf_after_title', | |
'layout' => 'default', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 0, | |
)); | |
register_field_group(array ( | |
'id' => 'acf_video-fields', | |
'title' => 'Video Fields', | |
'fields' => array ( | |
array ( | |
'key' => 'field_5384e5c88f74d', | |
'label' => 'HBO Video URL', | |
'name' => 'iframe_url', | |
'type' => 'text', | |
'default_value' => '', | |
'placeholder' => '', | |
'prepend' => '', | |
'append' => '', | |
'formatting' => 'html', | |
'maxlength' => '', | |
), | |
), | |
'location' => array ( | |
array ( | |
array ( | |
'param' => 'post_type', | |
'operator' => '==', | |
'value' => 'videos', | |
'order_no' => 0, | |
'group_no' => 0, | |
), | |
), | |
), | |
'options' => array ( | |
'position' => 'normal', | |
'layout' => 'default', | |
'hide_on_screen' => array ( | |
), | |
), | |
'menu_order' => 0, | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment