Add ACF export
This commit is contained in:
parent
c17f08bf5b
commit
56275ef81f
2 changed files with 751 additions and 0 deletions
505
advanced-custom-field-export.functions.php
Normal file
505
advanced-custom-field-export.functions.php
Normal file
|
|
@ -0,0 +1,505 @@
|
|||
<?php
|
||||
if(function_exists("register_field_group"))
|
||||
{
|
||||
register_field_group(array (
|
||||
'id' => 'acf_album',
|
||||
'title' => 'Album',
|
||||
'fields' => array (
|
||||
array (
|
||||
'key' => 'field_57cae2b7eac21',
|
||||
'label' => 'Urlaub',
|
||||
'name' => 'urlaub',
|
||||
'type' => 'relationship',
|
||||
'instructions' => 'Zu welchem Urlaub gehört dieses Album?',
|
||||
'required' => 1,
|
||||
'return_format' => 'id',
|
||||
'post_type' => array (
|
||||
0 => 'post',
|
||||
),
|
||||
'taxonomy' => array (
|
||||
0 => 'category:2',
|
||||
),
|
||||
'filters' => array (
|
||||
0 => 'search',
|
||||
),
|
||||
'result_elements' => array (
|
||||
0 => 'post_title',
|
||||
),
|
||||
'max' => 1,
|
||||
),
|
||||
),
|
||||
'location' => array (
|
||||
array (
|
||||
array (
|
||||
'param' => 'post_type',
|
||||
'operator' => '==',
|
||||
'value' => 'post',
|
||||
'order_no' => 0,
|
||||
'group_no' => 0,
|
||||
),
|
||||
array (
|
||||
'param' => 'post_category',
|
||||
'operator' => '==',
|
||||
'value' => '4',
|
||||
'order_no' => 1,
|
||||
'group_no' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'options' => array (
|
||||
'position' => 'normal',
|
||||
'layout' => 'default',
|
||||
'hide_on_screen' => array (
|
||||
),
|
||||
),
|
||||
'menu_order' => 0,
|
||||
));
|
||||
register_field_group(array (
|
||||
'id' => 'acf_tagebuch',
|
||||
'title' => 'Tagebuch',
|
||||
'fields' => array (
|
||||
array (
|
||||
'key' => 'field_57cae1b26bfef',
|
||||
'label' => 'Urlaub',
|
||||
'name' => 'urlaub',
|
||||
'type' => 'relationship',
|
||||
'instructions' => 'Zu welchem Urlaub gehört dieser Tagebuch Eintrag?',
|
||||
'required' => 1,
|
||||
'return_format' => 'id',
|
||||
'post_type' => array (
|
||||
0 => 'post',
|
||||
),
|
||||
'taxonomy' => array (
|
||||
0 => 'category:2',
|
||||
),
|
||||
'filters' => array (
|
||||
0 => 'search',
|
||||
),
|
||||
'result_elements' => array (
|
||||
0 => 'post_title',
|
||||
),
|
||||
'max' => 1,
|
||||
),
|
||||
array (
|
||||
'key' => 'field_57cae2026bff0',
|
||||
'label' => 'Ort',
|
||||
'name' => 'ort',
|
||||
'type' => 'google_map',
|
||||
'instructions' => 'Geographischer Ort dieses Tagebucheintrags.',
|
||||
'center_lat' => '50.753142',
|
||||
'center_lng' => '10.195313',
|
||||
'zoom' => 3,
|
||||
'height' => 500,
|
||||
),
|
||||
),
|
||||
'location' => array (
|
||||
array (
|
||||
array (
|
||||
'param' => 'post_type',
|
||||
'operator' => '==',
|
||||
'value' => 'post',
|
||||
'order_no' => 0,
|
||||
'group_no' => 0,
|
||||
),
|
||||
array (
|
||||
'param' => 'post_category',
|
||||
'operator' => '==',
|
||||
'value' => '3',
|
||||
'order_no' => 1,
|
||||
'group_no' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'options' => array (
|
||||
'position' => 'normal',
|
||||
'layout' => 'default',
|
||||
'hide_on_screen' => array (
|
||||
),
|
||||
),
|
||||
'menu_order' => 0,
|
||||
));
|
||||
register_field_group(array (
|
||||
'id' => 'acf_tour',
|
||||
'title' => 'Tour',
|
||||
'fields' => array (
|
||||
array (
|
||||
'key' => 'field_57cae2e8acd26',
|
||||
'label' => 'Urlaub',
|
||||
'name' => 'urlaub',
|
||||
'type' => 'relationship',
|
||||
'instructions' => 'Zu welchem Urlaub gehört diese Tour?',
|
||||
'required' => 1,
|
||||
'return_format' => 'id',
|
||||
'post_type' => array (
|
||||
0 => 'post',
|
||||
),
|
||||
'taxonomy' => array (
|
||||
0 => 'category:2',
|
||||
),
|
||||
'filters' => array (
|
||||
0 => 'search',
|
||||
),
|
||||
'result_elements' => array (
|
||||
0 => 'post_title',
|
||||
),
|
||||
'max' => 1,
|
||||
),
|
||||
),
|
||||
'location' => array (
|
||||
array (
|
||||
array (
|
||||
'param' => 'post_type',
|
||||
'operator' => '==',
|
||||
'value' => 'post',
|
||||
'order_no' => 0,
|
||||
'group_no' => 0,
|
||||
),
|
||||
array (
|
||||
'param' => 'post_category',
|
||||
'operator' => '==',
|
||||
'value' => '5',
|
||||
'order_no' => 1,
|
||||
'group_no' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'options' => array (
|
||||
'position' => 'normal',
|
||||
'layout' => 'default',
|
||||
'hide_on_screen' => array (
|
||||
),
|
||||
),
|
||||
'menu_order' => 0,
|
||||
));
|
||||
register_field_group(array (
|
||||
'id' => 'acf_urlaub',
|
||||
'title' => 'Urlaub',
|
||||
'fields' => array (
|
||||
array (
|
||||
'key' => 'field_57cadde228661',
|
||||
'label' => 'Land',
|
||||
'name' => 'land',
|
||||
'type' => 'select',
|
||||
'instructions' => 'Länder die in diesem Urlaub besucht wurden. Bitte mindestens eins auswählen',
|
||||
'required' => 1,
|
||||
'choices' => array (
|
||||
'Afghanistan' => 'Afghanistan',
|
||||
'Ägypten' => 'Ägypten',
|
||||
'Albanien' => 'Albanien',
|
||||
'Algerien' => 'Algerien',
|
||||
'Andorra' => 'Andorra',
|
||||
'Angola' => 'Angola',
|
||||
'Antigua und Barbuda' => 'Antigua und Barbuda',
|
||||
'Äquatorialguinea' => 'Äquatorialguinea',
|
||||
'Argentinien' => 'Argentinien',
|
||||
'Armenien' => 'Armenien',
|
||||
'Aserbaidschan' => 'Aserbaidschan',
|
||||
'Äthiopien' => 'Äthiopien',
|
||||
'Australien' => 'Australien',
|
||||
'Bahamas' => 'Bahamas',
|
||||
'Bahrain' => 'Bahrain',
|
||||
'Bangladesch' => 'Bangladesch',
|
||||
'Barbados' => 'Barbados',
|
||||
'Belarus' => 'Belarus',
|
||||
'Belgien' => 'Belgien',
|
||||
'Belize' => 'Belize',
|
||||
'Benin' => 'Benin',
|
||||
'Bhutan' => 'Bhutan',
|
||||
'Bolivien' => 'Bolivien',
|
||||
'Bosnien und Herzegowina' => 'Bosnien und Herzegowina',
|
||||
'Botsuana' => 'Botsuana',
|
||||
'Brasilien' => 'Brasilien',
|
||||
'Brunei Darussalam' => 'Brunei Darussalam',
|
||||
'Bulgarien' => 'Bulgarien',
|
||||
'Burkina Faso' => 'Burkina Faso',
|
||||
'Burundi' => 'Burundi',
|
||||
'Chile' => 'Chile',
|
||||
'China' => 'China',
|
||||
'Cookinseln' => 'Cookinseln',
|
||||
'Costa Rica' => 'Costa Rica',
|
||||
'Côte d´Ivoire' => 'Côte d´Ivoire',
|
||||
'Dänemark' => 'Dänemark',
|
||||
'Deutschland' => 'Deutschland',
|
||||
'Dominica' => 'Dominica',
|
||||
'Dominikanische Republik' => 'Dominikanische Republik',
|
||||
'Dschibuti' => 'Dschibuti',
|
||||
'Ecuador' => 'Ecuador',
|
||||
'El Salvador' => 'El Salvador',
|
||||
'Eritrea' => 'Eritrea',
|
||||
'Estland' => 'Estland',
|
||||
'Fidschi' => 'Fidschi',
|
||||
'Finnland' => 'Finnland',
|
||||
'Frankreich' => 'Frankreich',
|
||||
'Gabun' => 'Gabun',
|
||||
'Gambia' => 'Gambia',
|
||||
'Georgien' => 'Georgien',
|
||||
'Ghana' => 'Ghana',
|
||||
'Grenada' => 'Grenada',
|
||||
'Griechenland' => 'Griechenland',
|
||||
'Großbritannien' => 'Großbritannien',
|
||||
'Guatemala' => 'Guatemala',
|
||||
'Guinea' => 'Guinea',
|
||||
'Guinea-Bissau' => 'Guinea-Bissau',
|
||||
'Guyana' => 'Guyana',
|
||||
'Haiti' => 'Haiti',
|
||||
'Honduras' => 'Honduras',
|
||||
'Indien' => 'Indien',
|
||||
'Indonesien' => 'Indonesien',
|
||||
'Irak' => 'Irak',
|
||||
'Iran' => 'Iran',
|
||||
'Irland' => 'Irland',
|
||||
'Island' => 'Island',
|
||||
'Israel' => 'Israel',
|
||||
'Italien' => 'Italien',
|
||||
'Jamaika' => 'Jamaika',
|
||||
'Japan' => 'Japan',
|
||||
'Jemen' => 'Jemen',
|
||||
'Jordanien' => 'Jordanien',
|
||||
'Kambodscha' => 'Kambodscha',
|
||||
'Kamerun' => 'Kamerun',
|
||||
'Kanada' => 'Kanada',
|
||||
'Kap Verde' => 'Kap Verde',
|
||||
'Kasachstan' => 'Kasachstan',
|
||||
'Katar' => 'Katar',
|
||||
'Kenia' => 'Kenia',
|
||||
'Kirgisistan' => 'Kirgisistan',
|
||||
'Kiribati' => 'Kiribati',
|
||||
'Kolumbien' => 'Kolumbien',
|
||||
'Komoren' => 'Komoren',
|
||||
'Kongo' => 'Kongo',
|
||||
'Kongo, Demokratische Republik' => 'Kongo, Demokratische Republik',
|
||||
'Korea, Demokratische Volksrepublik' => 'Korea, Demokratische Volksrepublik',
|
||||
'Korea, Republik' => 'Korea, Republik',
|
||||
'Kosovo' => 'Kosovo',
|
||||
'Kroatien' => 'Kroatien',
|
||||
'Kuba' => 'Kuba',
|
||||
'Kuwait' => 'Kuwait',
|
||||
'Laos' => 'Laos',
|
||||
'Lesotho' => 'Lesotho',
|
||||
'Lettland' => 'Lettland',
|
||||
'Libanon' => 'Libanon',
|
||||
'Liberia' => 'Liberia',
|
||||
'Libyen' => 'Libyen',
|
||||
'Liechtenstein' => 'Liechtenstein',
|
||||
'Litauen' => 'Litauen',
|
||||
'Luxemburg' => 'Luxemburg',
|
||||
'Madagaskar' => 'Madagaskar',
|
||||
'Malawi' => 'Malawi',
|
||||
'Malaysia' => 'Malaysia',
|
||||
'Malediven' => 'Malediven',
|
||||
'Mali' => 'Mali',
|
||||
'Malta' => 'Malta',
|
||||
'Marokko' => 'Marokko',
|
||||
'Marshallinseln' => 'Marshallinseln',
|
||||
'Mauretanien' => 'Mauretanien',
|
||||
'Mauritius' => 'Mauritius',
|
||||
'Mazedonien' => 'Mazedonien',
|
||||
'Mexiko' => 'Mexiko',
|
||||
'Mikronesien' => 'Mikronesien',
|
||||
'Moldau' => 'Moldau',
|
||||
'Monaco' => 'Monaco',
|
||||
'Mongolei' => 'Mongolei',
|
||||
'Montenegro' => 'Montenegro',
|
||||
'Mosambik' => 'Mosambik',
|
||||
'Myanmar' => 'Myanmar',
|
||||
'Namibia' => 'Namibia',
|
||||
'Nauru' => 'Nauru',
|
||||
'Nepal' => 'Nepal',
|
||||
'Neuseeland' => 'Neuseeland',
|
||||
'Nicaragua' => 'Nicaragua',
|
||||
'Niederlande' => 'Niederlande',
|
||||
'Niger' => 'Niger',
|
||||
'Nigeria' => 'Nigeria',
|
||||
'Norwegen' => 'Norwegen',
|
||||
'Oman' => 'Oman',
|
||||
'Österreich' => 'Österreich',
|
||||
'Pakistan' => 'Pakistan',
|
||||
'Palau' => 'Palau',
|
||||
'Panama' => 'Panama',
|
||||
'Papua-Neuguinea' => 'Papua-Neuguinea',
|
||||
'Paraguay' => 'Paraguay',
|
||||
'Peru' => 'Peru',
|
||||
'Philippinen' => 'Philippinen',
|
||||
'Polen' => 'Polen',
|
||||
'Portugal' => 'Portugal',
|
||||
'Ruanda' => 'Ruanda',
|
||||
'Rumänien' => 'Rumänien',
|
||||
'Russische Föderation' => 'Russische Föderation',
|
||||
'Salomonen' => 'Salomonen',
|
||||
'Sambia' => 'Sambia',
|
||||
'Samoa' => 'Samoa',
|
||||
'San Marino' => 'San Marino',
|
||||
'São Tomé und Príncipe' => 'São Tomé und Príncipe',
|
||||
'Saudi-Arabien' => 'Saudi-Arabien',
|
||||
'Schweden' => 'Schweden',
|
||||
'Schweiz' => 'Schweiz',
|
||||
'Senegal' => 'Senegal',
|
||||
'Serbien' => 'Serbien',
|
||||
'Seychellen' => 'Seychellen',
|
||||
'Sierra Leone' => 'Sierra Leone',
|
||||
'Simbabwe' => 'Simbabwe',
|
||||
'Singapur' => 'Singapur',
|
||||
'Slowakei' => 'Slowakei',
|
||||
'Slowenien' => 'Slowenien',
|
||||
'Somalia' => 'Somalia',
|
||||
'Spanien' => 'Spanien',
|
||||
'Sri Lanka' => 'Sri Lanka',
|
||||
'St. Kitts und Nevis' => 'St. Kitts und Nevis',
|
||||
'St. Lucia' => 'St. Lucia',
|
||||
'St. Vincent und die Grenadinen' => 'St. Vincent und die Grenadinen',
|
||||
'Südafrika' => 'Südafrika',
|
||||
'Sudan' => 'Sudan',
|
||||
'Südsudan' => 'Südsudan',
|
||||
'Suriname' => 'Suriname',
|
||||
'Swasiland' => 'Swasiland',
|
||||
'Syrien' => 'Syrien',
|
||||
'Tadschikistan' => 'Tadschikistan',
|
||||
'Taiwan' => 'Taiwan',
|
||||
'Tansania' => 'Tansania',
|
||||
'Thailand' => 'Thailand',
|
||||
'Timor-Leste' => 'Timor-Leste',
|
||||
'Togo' => 'Togo',
|
||||
'Tonga' => 'Tonga',
|
||||
'Trinidad und Tobago' => 'Trinidad und Tobago',
|
||||
'Tschad' => 'Tschad',
|
||||
'Tschechische Republik' => 'Tschechische Republik',
|
||||
'Tunesien' => 'Tunesien',
|
||||
'Türkei' => 'Türkei',
|
||||
'Turkmenistan' => 'Turkmenistan',
|
||||
'Tuvalu' => 'Tuvalu',
|
||||
'Uganda' => 'Uganda',
|
||||
'Ukraine' => 'Ukraine',
|
||||
'Ungarn' => 'Ungarn',
|
||||
'Uruguay' => 'Uruguay',
|
||||
'Usbekistan' => 'Usbekistan',
|
||||
'Vanuatu' => 'Vanuatu',
|
||||
'Vatikanstadt' => 'Vatikanstadt',
|
||||
'Venezuela' => 'Venezuela',
|
||||
'Vereinigte Arabische Emirate' => 'Vereinigte Arabische Emirate',
|
||||
'Vereinigte Staaten' => 'Vereinigte Staaten',
|
||||
'Vietnam' => 'Vietnam',
|
||||
'Zentralafrikanische Republik' => 'Zentralafrikanische Republik',
|
||||
'Zypern' => 'Zypern',
|
||||
'' => '',
|
||||
),
|
||||
'default_value' => 'Deutschland',
|
||||
'allow_null' => 0,
|
||||
'multiple' => 1,
|
||||
),
|
||||
array (
|
||||
'key' => 'field_57cadf1c28662',
|
||||
'label' => 'Mitreisende',
|
||||
'name' => 'mitreisende',
|
||||
'type' => 'select',
|
||||
'instructions' => 'Wer war im Urlaub dabei?',
|
||||
'required' => 1,
|
||||
'choices' => array (
|
||||
'Rainer' => 'Rainer',
|
||||
'Susanne' => 'Susanne',
|
||||
'Sebastian' => 'Sebastian',
|
||||
'Jennifer' => 'Jennifer',
|
||||
'Markus' => 'Markus',
|
||||
'Hannah' => 'Hannah',
|
||||
'Tobias' => 'Tobias',
|
||||
'Lorena' => 'Lorena',
|
||||
'Fynn' => 'Fynn',
|
||||
'Florian' => 'Florian',
|
||||
'Regina' => 'Regina',
|
||||
'Moritz' => 'Moritz',
|
||||
'Linda' => 'Linda',
|
||||
'Marion v. B.' => 'Marion v. B.',
|
||||
'Brigitte Wiesner' => 'Brigitte Wiesner',
|
||||
'Elmar Wiesner' => 'Elmar Wiesner',
|
||||
'Esther Wiesner' => 'Esther Wiesner',
|
||||
'Burkard Illig' => 'Burkard Illig',
|
||||
'Samuel J. Wiesner' => 'Samuel J. Wiesner',
|
||||
'Jan Wiesner' => 'Jan Wiesner',
|
||||
'Leano' => 'Leano',
|
||||
'Oliver Martens' => 'Oliver Martens',
|
||||
'Saskia Martens' => 'Saskia Martens',
|
||||
'Pascal Martens' => 'Pascal Martens',
|
||||
'Sophia Martens' => 'Sophia Martens',
|
||||
'Silke Weidner' => 'Silke Weidner',
|
||||
'Johannes Weidner' => 'Johannes Weidner',
|
||||
'Kristina Weidner' => 'Kristina Weidner',
|
||||
'Alexander Weidner' => 'Alexander Weidner',
|
||||
'Maximilian Weidner' => 'Maximilian Weidner',
|
||||
'Marion Lanny' => 'Marion Lanny',
|
||||
'Michael Lanny' => 'Michael Lanny',
|
||||
'Frederick Lanny' => 'Frederick Lanny',
|
||||
'Felix Lanny' => 'Felix Lanny',
|
||||
'Isabell Lanny' => 'Isabell Lanny',
|
||||
'Verena Lanny' => 'Verena Lanny',
|
||||
'Philipp Lanny' => 'Philipp Lanny',
|
||||
'Timm Dold' => 'Timm Dold',
|
||||
'Stephanie Herrmann' => 'Stephanie Herrmann',
|
||||
'Stephan Haupt' => 'Stephan Haupt',
|
||||
'Luisa Schirm' => 'Luisa Schirm',
|
||||
),
|
||||
'default_value' => '',
|
||||
'allow_null' => 0,
|
||||
'multiple' => 1,
|
||||
),
|
||||
array (
|
||||
'key' => 'field_57cae01e1639a',
|
||||
'label' => 'Anreise',
|
||||
'name' => 'anreise',
|
||||
'type' => 'date_picker',
|
||||
'instructions' => 'Anreisedatum',
|
||||
'required' => 1,
|
||||
'date_format' => 'yymmdd',
|
||||
'display_format' => 'dd.mm.yy',
|
||||
'first_day' => 1,
|
||||
),
|
||||
array (
|
||||
'key' => 'field_57cae07b1639c',
|
||||
'label' => 'Abreise',
|
||||
'name' => 'abreise',
|
||||
'type' => 'date_picker',
|
||||
'instructions' => 'Datum der Abreise',
|
||||
'required' => 1,
|
||||
'date_format' => 'yymmdd',
|
||||
'display_format' => 'dd.mm.yy',
|
||||
'first_day' => 1,
|
||||
),
|
||||
array (
|
||||
'key' => 'field_581e1fdd9e181',
|
||||
'label' => 'Orte',
|
||||
'name' => 'orte',
|
||||
'type' => 'multimap',
|
||||
'instructions' => 'Setze eine Markierung für jeden Ort an dem ihr in diesem Urlaub für längere Zeit ward. Daumenregel: mindestens eine Übernachtung.',
|
||||
'required' => 1,
|
||||
'center_lat' => '49.862190',
|
||||
'center_lng' => '9.807720',
|
||||
'zoom' => 8,
|
||||
'height' => 600,
|
||||
),
|
||||
),
|
||||
'location' => array (
|
||||
array (
|
||||
array (
|
||||
'param' => 'post_type',
|
||||
'operator' => '==',
|
||||
'value' => 'post',
|
||||
'order_no' => 0,
|
||||
'group_no' => 0,
|
||||
),
|
||||
array (
|
||||
'param' => 'post_category',
|
||||
'operator' => '==',
|
||||
'value' => '2',
|
||||
'order_no' => 1,
|
||||
'group_no' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'options' => array (
|
||||
'position' => 'normal',
|
||||
'layout' => 'default',
|
||||
'hide_on_screen' => array (
|
||||
),
|
||||
),
|
||||
'menu_order' => 0,
|
||||
));
|
||||
}
|
||||
|
||||
246
advanced-custom-field-export.xml
Normal file
246
advanced-custom-field-export.xml
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue