From a1d8f0b02c5e801ebdc4188c3fd3b42baceae187 Mon Sep 17 00:00:00 2001 From: andrewmbacon Date: Wed, 5 Aug 2015 11:11:53 -0400 Subject: [PATCH] Adding ACF export --- .gitignore | 2 + acf-export.php | 190 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 .gitignore create mode 100644 acf-export.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bea433 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +.DS_Store diff --git a/acf-export.php b/acf-export.php new file mode 100644 index 0000000..c5e8e27 --- /dev/null +++ b/acf-export.php @@ -0,0 +1,190 @@ + 'acf_person', + 'title' => 'Person', + 'fields' => array ( + array ( + 'key' => 'field_55a6595eba964', + 'label' => 'First Name', + 'name' => 'first_name', + 'type' => 'text', + 'required' => 1, + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a6596c4a44d', + 'label' => 'Middle Name', + 'name' => 'middle_name', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a65973063d2', + 'label' => 'Last Name', + 'name' => 'last_name', + 'type' => 'text', + 'required' => 1, + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a65979063d3', + 'label' => 'Title', + 'name' => 'title', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659a4063d4', + 'label' => 'About', + 'name' => 'about', + 'type' => 'wysiwyg', + 'default_value' => '', + 'toolbar' => 'full', + 'media_upload' => 'yes', + ), + array ( + 'key' => 'field_55a659aa063d5', + 'label' => 'File', + 'name' => 'file', + 'type' => 'file', + 'save_format' => 'object', + 'library' => 'all', + ), + array ( + 'key' => 'field_55a659b1063d6', + 'label' => 'Email', + 'name' => 'email', + 'type' => 'email', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + ), + array ( + 'key' => 'field_55a659c4063d7', + 'label' => 'Phone', + 'name' => 'phone', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659ca063d8', + 'label' => 'Phone (alternate)', + 'name' => 'phone_(alternate)', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659d2063d9', + 'label' => 'Fax', + 'name' => 'fax', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659de063da', + 'label' => 'Mailing Address', + 'name' => 'mailing_address', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659ee063db', + 'label' => 'Office Location', + 'name' => 'office_location', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659f7063dc', + 'label' => 'Office Hours', + 'name' => 'office_hours', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + array ( + 'key' => 'field_55a659ff063dd', + 'label' => 'Courses', + 'name' => 'courses', + 'type' => 'text', + 'default_value' => '', + 'placeholder' => '', + 'prepend' => '', + 'append' => '', + 'formatting' => 'html', + 'maxlength' => '', + ), + ), + 'location' => array ( + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'person', + 'order_no' => 0, + 'group_no' => 0, + ), + ), + ), + 'options' => array ( + 'position' => 'normal', + 'layout' => 'no_box', + 'hide_on_screen' => array ( + ), + ), + 'menu_order' => 0, + )); +} +?> \ No newline at end of file