File: /home/f/r/e/frenchy/www/french-american.org/current/app/functions/acf-fields/personne.fields.php
<?php
if( function_exists('acf_add_local_field_group') ):
acf_add_local_field_group(array(
'key' => 'PersonneFields',
'title' => 'Personne',
'fields' => array(
array(
'key' => 'nom_personne_key',
'label' => 'Nom',
'name' => 'nom_personne',
'type' => 'text',
'required' => 1
),
array(
'key' => 'prenom_personne_key',
'label' => 'Prénom',
'name' => 'prenom_personne',
'type' => 'text',
'required' => 1
),
array(
'key' => 'fonction_personne_key',
'label' => 'Rôle dans la fondation',
'name' => 'fonction_personne',
'type' => 'text',
'required' => 1
),
array(
'key' => 'activite_pro_personne_key',
'label' => 'Activité professionnelle',
'name' => 'activite_pro_personne',
'type' => 'text'
),
array(
'key' => 'photo_personne_key',
'label' => 'Photo',
'name' => 'photo_personne',
'type' => 'image',
'required' => 0,
'return_format' => 'array',
'preview_size' => 'medium'
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'personne',
),
),
)
));
endif;