Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Adding ACF export
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Aug 5, 2015
1 parent 2c9afc8 commit a1d8f0b
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

.DS_Store
190 changes: 190 additions & 0 deletions acf-export.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
<?php
if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => '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,
));
}
?>

0 comments on commit a1d8f0b

Please sign in to comment.