Support

Account

Forum Replies Created

  • Now i solved editing the function click_ignore like that

    click_ignore: function( e ) {
    	if(jQuery('#post_status').val()=='pending'){
    		this.$trigger = e.$el;
    	} else {
    		// reference
    		var self = this;
    		
    		
    		// vars
    		this.ignore = 1;
    		this.$trigger = e.$el;
    		this.$form = e.$el.closest('form');
    		
    		
    		// remove error message
    		$('.'+this.message_class).each(function(){
    			acf.remove_el( $(this) );
    		});
    		
    		
    		// ignore required inputs
    		this.ignore_required_inputs();
    		
    		
    		// maybe show errors
    		setTimeout(function(){
    			self.ignore = 0;
    		}, 100);
    	}
    	
    }
  • I found the error…
    I was declaring variables like this…

    global $infinite_loops_single_pagination, $related_enable_sidebar, $ads_sidebar_height;
    $related_enable_sidebar=get_field('related_enable_sidebar','options');
    $ads_sidebar_height=get_field('ads_sidebar_height','options');
    $infinite_loops_single_pagination=(bool)get_field('infinite_loops_single_pagination','options');
    

    … outside a function.

  • This is a file included in function.php

    <?php
    
    if( function_exists('acf_add_options_page') ) {
    	
    	$parent=acf_add_options_page(array(
    		'page_title' 	=> __('Opzioni tema', RDD_THEME_LANGUAGE),
    		'menu_title'	=> __('Opzioni tema', RDD_THEME_LANGUAGE),
    		'menu_slug' 	=> 'theme-settings',
    		'capability'	=> 'edit_posts',
    		'redirect'		=> false,
    	));
    
    }
    
    if( function_exists('acf_add_local_field_group') ):
    
    acf_add_local_field_group(array (
    	'key' => 'group_56deba1cbd3f5',
    	'title' => 'Opzioni tema',
    	'fields' => array (
    		array (
    			'key' => 'field_56e1311b8a152',
    			'label' => 'Header',
    			'name' => 'header',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_56ded92b9fac1',
    			'label' => 'Testo del logo',
    			'name' => 'logo_text',
    			'type' => 'text',
    			'instructions' => 'Sarà utilizzato se non selezioni nessun\'immagine del logo qui sotto.',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    			'prepend' => '',
    			'append' => '',
    			'maxlength' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56ded9439fac2',
    			'label' => 'Immagine logo',
    			'name' => 'logo_image',
    			'type' => 'image',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'return_format' => 'array',
    			'preview_size' => 'scale-half-wide',
    			'library' => 'all',
    			'min_width' => '',
    			'min_height' => '',
    			'min_size' => '',
    			'max_width' => '',
    			'max_height' => '',
    			'max_size' => '',
    			'mime_types' => '',
    		),
    		array (
    			'key' => 'field_56e185ed2619a',
    			'label' => 'Immagine logo mini',
    			'name' => 'logo_image_mini',
    			'type' => 'image',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'return_format' => 'array',
    			'preview_size' => 'scale-half-wide',
    			'library' => 'all',
    			'min_width' => '',
    			'min_height' => '',
    			'min_size' => '',
    			'max_width' => '',
    			'max_height' => '',
    			'max_size' => '',
    			'mime_types' => '',
    		),
    		array (
    			'key' => 'field_56ded96c9fac3',
    			'label' => 'Tagline',
    			'name' => 'tagline',
    			'type' => 'text',
    			'instructions' => 'Per inserire spazio unificatore tra le parole, usare il segno_ (senza spazi).',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'Il primo social magazine per sole donne...',
    			'prepend' => '',
    			'append' => '',
    			'maxlength' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56ded7ba9fabf',
    			'label' => 'Apparenza',
    			'name' => '',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_56deba313957c',
    			'label' => 'Colore principale',
    			'name' => 'main_color',
    			'type' => 'color_picker',
    			'instructions' => '',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '#fc5356',
    		),
    		array (
    			'key' => 'field_56dedc3bf9827',
    			'label' => 'Colore secondario :hover',
    			'name' => 'hover_color',
    			'type' => 'color_picker',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '#BD3539',
    		),
    		array (
    			'key' => 'field_56dedc96f9829',
    			'label' => 'Colore secondario :active',
    			'name' => 'active_color',
    			'type' => 'color_picker',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '#BD3539',
    		),
    		array (
    			'key' => 'field_56dedc6ef9828',
    			'label' => 'Colore secondario :focus',
    			'name' => 'focus_color',
    			'type' => 'color_picker',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '#BD3539',
    		),
    		array (
    			'key' => 'field_56dedcaef982a',
    			'label' => 'Colore secondario :visited',
    			'name' => 'visited_color',
    			'type' => 'color_picker',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '#BD3539',
    		),
    		array (
    			'key' => 'field_56ded6c8b4ee4',
    			'label' => 'Immagine della favicon',
    			'name' => 'favicon_image',
    			'type' => 'image',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'return_format' => 'url',
    			'preview_size' => 'detail',
    			'library' => 'all',
    			'min_width' => '',
    			'min_height' => '',
    			'min_size' => '',
    			'max_width' => '',
    			'max_height' => '',
    			'max_size' => '',
    			'mime_types' => '',
    		),
    		array (
    			'key' => 'field_56dxd9c9fac4',
    			'label' => 'Single page',
    			'name' => 'single_page',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_52dec9a29fac40',
    			'label' => 'Post correlati Header',
    			'name' => 'related_enable_header',
    			'type' => 'radio',
    			'instructions' => "Abilita o meno la sezione correlati nell'header",
    			'required' => 1,
    			'conditional_logic' => 0,
    			'choices' => array (
    				1 => 'Abilitato',
    				0 => 'Disabilitato',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_52dec9ac9fdc41',
    			'label' => 'Post correlati Sidebar',
    			'name' => 'related_enable_sidebar',
    			'type' => 'radio',
    			'instructions' => 'Abilita o meno la sezione correlati nella sidebar',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'choices' => array (
    				1 => 'Abilitato',
    				0 => 'Disabilitato',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_52dec9av9fac4p',
    			'label' => 'Altezza sticky-ads Sidebar',
    			'name' => 'ads_sidebar_height',
    			'type' => 'text',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'default_value' => '1500',
    			'placeholder' => '1500',
    			'prepend' => '',
    			'append' => 'px',
    			'maxlength' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_12dec9a2vfac43',
    			'label' => 'Infinite Loops Paginazione Articolo',
    			'name' => 'infinite_loops_single_pagination',
    			'type' => 'radio',
    			'instructions' => '',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'choices' => array (
    				true => 'Abilitato',
    				0 => 'Disabilitato',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_52dec9a29bac44',
    			'label' => 'Infinite Loops Prossimo Articolo',
    			'name' => 'infinite_loops_single_next',
    			'type' => 'radio',
    			'instructions' => '',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'choices' => array (
    				1 => 'Abilitato',
    				0 => 'Disabilitato',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_55dod9o29fbx0',
    			'label' => 'Lazy Load',
    			'name' => 'lazy_load',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_55dod9o29fbx1',
    			'label' => 'Homepage',
    			'name' => 'lazy_load_home_active',
    			'type' => 'radio',
    			'instructions' => 'Abilita o meno il lazy load nella Homepage',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				1 => 'on',
    				0 => 'off',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_55dod9o29fbx2',
    			'label' => 'Single page',
    			'name' => 'lazy_load_single_active',
    			'type' => 'radio',
    			'instructions' => 'Abilita o meno il lazy load nelle single pages',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				1 => 'on',
    				0 => 'off',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_55dod9o29fbx3',
    			'label' => 'Archivi',
    			'name' => 'lazy_load_archives_active',
    			'type' => 'radio',
    			'instructions' => 'Abilita o meno il lazy load nelle single pages',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				1 => 'on',
    				0 => 'off',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 1,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_56dede4aa7bf1',
    			'label' => 'Social',
    			'name' => 'social',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_56dede59a7bf2',
    			'label' => 'Facebook url',
    			'name' => 'profile_url_facebook',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://www.facebook.com/robadadonne',
    		),
    		array (
    			'key' => 'field_56dede92a7bf3',
    			'label' => 'Twitter url',
    			'name' => 'profile_url_twitter',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://twitter.com/robadadonne',
    		),
    		array (
    			'key' => 'field_56e96308c7a7a',
    			'label' => 'Twitter via',
    			'name' => 'profile_via_twitter',
    			'type' => 'text',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    			'prepend' => '@',
    			'append' => '',
    			'maxlength' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56e9633ec7a7b',
    			'label' => 'Twitter hashtags',
    			'name' => 'profile_hastags_twitter',
    			'type' => 'text',
    			'instructions' => 'Separa gli hastags con una virgola',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '#example, #demo',
    			'prepend' => '',
    			'append' => '',
    			'maxlength' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56dededba7bf4',
    			'label' => 'Pinterest url',
    			'name' => 'profile_url_pinterest',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://www.pinterest.com/robadadonne/',
    		),
    		array (
    			'key' => 'field_56dedef3a7bf5',
    			'label' => 'Instagram url',
    			'name' => 'profile_url_instagram',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://www.instagram.com/robadadonne/',
    		),
    		array (
    			'key' => 'field_56dedf1ba7bf6',
    			'label' => 'Google+ url',
    			'name' => 'profile_url_googleplus',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://plus.google.com/+RobadadonneIt',
    		),
    		array (
    			'key' => 'field_56dedf70a7bf7',
    			'label' => 'Youtube url',
    			'name' => 'profile_url_youtube',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => 'https://www.youtube.com/channel/UCd5_RNvJvPT7KoOqDwCRlew',
    		),
    		array (
    			'key' => 'field_56dedb41fdb37',
    			'label' => 'Under Construction',
    			'name' => 'underconstruction',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_56dedb87fdb38',
    			'label' => 'Under Construction Active',
    			'name' => 'underconstruction_active',
    			'type' => 'radio',
    			'instructions' => 'Si può scegliere di inviare il codice di stato HTTP standard con la pagina in costruzione, o inviare un codice di stato "Servizio non disponibile" 503. Questo dirà a Google che questa pagina non è ancora pronta fino a quando questo plugin è disabilitato.
    Inoltre è possibile selezionare quali ruoli utente possono accedere al sito quando "Under Construction" è attivo. 
    NB. Administrator è sempre attivo',
    			'required' => 1,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				1 => 'on',
    				0 => 'off',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 0,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_56e131708a153',
    			'label' => 'HTTP Status Code',
    			'name' => 'underconstrunction_http_status_code',
    			'type' => 'radio',
    			'instructions' => 'Si può scegliere di inviare il codice di stato HTTP standard con la pagina in costruzione, o inviare un codice di stato "Servizio non disponibile" 503. Questo dirà a Google che questa pagina non è ancora pronta fino a quando questo plugin è disabilitato.',
    			'required' => 0,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				200 => 'HTTP 200 - ok',
    				301 => 'HTTP 301 - Redirect',
    				503 => 'HTTP 503 - Service Unavailable',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 200,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_56e132558a154',
    			'label' => 'Redirect Location',
    			'name' => 'underconstruction_redirect_location',
    			'type' => 'url',
    			'instructions' => '',
    			'required' => 1,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    					array (
    						'field' => 'field_56e131708a153',
    						'operator' => '==',
    						'value' => '301',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    		),
    		array (
    			'key' => 'field_56e137ff8adf7',
    			'label' => 'Display Options',
    			'name' => 'underconstruction_display_options',
    			'type' => 'radio',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    					array (
    						'field' => 'field_56e131708a153',
    						'operator' => '==',
    						'value' => '200',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				0 => 'Visualizza la pagina in costruzione di default',
    				1 => 'Visualizza la pagina in costruzione di default, ma utilizza del testo personalizzato',
    				2 => 'Visualizza una pagina personalizzata utilizzando il proprio codice HTML',
    			),
    			'other_choice' => 0,
    			'save_other_choice' => 0,
    			'default_value' => 0,
    			'layout' => 'vertical',
    		),
    		array (
    			'key' => 'field_56e138b28adf8',
    			'label' => 'Visualizza la pagina in costruzione di default, ma utilizza del testo personalizzato',
    			'name' => 'underconstruction_display_options_1',
    			'type' => 'repeater',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    					array (
    						'field' => 'field_56e137ff8adf7',
    						'operator' => '==',
    						'value' => '1',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'collapsed' => 'field_56e139288adfa',
    			'min' => 1,
    			'max' => 1,
    			'layout' => 'row',
    			'button_label' => '',
    			'sub_fields' => array (
    				array (
    					'key' => 'field_56e17865c0d2f',
    					'label' => 'Colore background',
    					'name' => 'underconstruction_page_color_background',
    					'type' => 'color_picker',
    					'instructions' => '',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => '',
    						'class' => '',
    						'id' => '',
    					),
    					'default_value' => '#FF5553',
    				),
    				array (
    					'key' => 'field_56e178c9c0d30',
    					'label' => 'Immagine background',
    					'name' => 'underconstruction_page_image_background',
    					'type' => 'image',
    					'instructions' => '',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => '',
    						'class' => '',
    						'id' => '',
    					),
    					'return_format' => 'url',
    					'preview_size' => 'scale-half-wide',
    					'library' => 'all',
    					'min_width' => '',
    					'min_height' => '',
    					'min_size' => '',
    					'max_width' => '',
    					'max_height' => '',
    					'max_size' => '',
    					'mime_types' => '',
    				),
    				array (
    					'key' => 'field_56e139288adfa',
    					'label' => 'Page Title',
    					'name' => 'underconstruction_page_title',
    					'type' => 'text',
    					'instructions' => '',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => '',
    						'class' => '',
    						'id' => '',
    					),
    					'default_value' => '',
    					'placeholder' => '',
    					'prepend' => '',
    					'append' => '',
    					'maxlength' => '',
    					'readonly' => 0,
    					'disabled' => 0,
    				),
    				array (
    					'key' => 'field_56e139438adfb',
    					'label' => 'Header Text',
    					'name' => 'underconstruction_page_header',
    					'type' => 'text',
    					'instructions' => '',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => '',
    						'class' => '',
    						'id' => '',
    					),
    					'default_value' => '',
    					'placeholder' => '',
    					'prepend' => '',
    					'append' => '',
    					'maxlength' => '',
    					'readonly' => 0,
    					'disabled' => 0,
    				),
    				array (
    					'key' => 'field_56e139578adfc',
    					'label' => 'Body Text',
    					'name' => 'underconstruction_page_body',
    					'type' => 'textarea',
    					'instructions' => '',
    					'required' => 0,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => '',
    						'class' => '',
    						'id' => '',
    					),
    					'default_value' => '',
    					'placeholder' => '',
    					'maxlength' => '',
    					'rows' => 3,
    					'new_lines' => 'wpautop',
    					'readonly' => 0,
    					'disabled' => 0,
    				),
    			),
    		),
    		array (
    			'key' => 'field_56e1397f8adfd',
    			'label' => 'Under Construction Pagina HTML',
    			'name' => 'underconstruction_display_options_2',
    			'type' => 'textarea',
    			'instructions' => 'Mettere in questa zona il codice HTML che si desidera visualizzare sulla vostra pagina anteriore',
    			'required' => 0,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    					array (
    						'field' => 'field_56e137ff8adf7',
    						'operator' => '==',
    						'value' => '2',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    			'maxlength' => '',
    			'rows' => '',
    			'new_lines' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56e132988a155',
    			'label' => 'Limiti di ruolo',
    			'name' => 'underconstruction_roles',
    			'type' => 'select',
    			'instructions' => 'Seleziona il gruppo di utenti che possono accedere al sito quando "Under Construction" è attivo. 
    NB. Administrator è sempre attivo',
    			'required' => 0,
    			'conditional_logic' => array (
    				array (
    					array (
    						'field' => 'field_56dedb87fdb38',
    						'operator' => '==',
    						'value' => '1',
    					),
    				),
    			),
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'choices' => array (
    				'administrator' => 'administrator',
    				'author' => 'author',
    				'contributor' => 'contributor',
    				'editor' => 'editor',
    				'redattore' => 'redattore',
    				'subscriber' => 'subscriber',
    				'bbp_keymaster' => 'bbp_keymaster',
    				'bbp_moderator' => 'bbp_moderator',
    				'bbp_participant' => 'bbp_participant',
    				'bbp_spectator' => 'bbp_spectator',
    				'bbp_blocked' => 'bbp_blocked',
    			),
    			'default_value' => array (
    			),
    			'allow_null' => 0,
    			'multiple' => 1,
    			'ui' => 0,
    			'ajax' => 0,
    			'placeholder' => '',
    			'disabled' => 0,
    			'readonly' => 0,
    		),
    		array (
    			'key' => 'field_56ded9af9fac5',
    			'label' => 'Avanzato',
    			'name' => '',
    			'type' => 'tab',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'placement' => 'left',
    			'endpoint' => 0,
    		),
    		array (
    			'key' => 'field_56ded9c59fac6',
    			'label' => 'Codice CSS Personalizzato',
    			'name' => 'custom_css',
    			'type' => 'textarea',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    			'maxlength' => '',
    			'rows' => '',
    			'new_lines' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    		array (
    			'key' => 'field_56ded9dc9fac7',
    			'label' => 'Codice Javascript personalizzato',
    			'name' => 'custom_js',
    			'type' => 'textarea',
    			'instructions' => '',
    			'required' => 0,
    			'conditional_logic' => 0,
    			'wrapper' => array (
    				'width' => '',
    				'class' => '',
    				'id' => '',
    			),
    			'default_value' => '',
    			'placeholder' => '',
    			'maxlength' => '',
    			'rows' => '',
    			'new_lines' => '',
    			'readonly' => 0,
    			'disabled' => 0,
    		),
    	),
    	'location' => array (
    		array (
    			array (
    				'param' => 'options_page',
    				'operator' => '==',
    				'value' => 'theme-settings',
    			),
    		),
    	),
    	'menu_order' => 0,
    	'position' => 'acf_after_title',
    	'style' => 'default',
    	'label_placement' => 'left',
    	'instruction_placement' => 'field',
    	'hide_on_screen' => '',
    	'active' => 1,
    	'description' => '',
    ));
    
    endif;
    
    function acf_load_underconstruction_roles_field_choices( $field ) {
        $field['choices'] = array();
        global $wp_roles;
    	$roles = $wp_roles->roles;
    	foreach($roles as $k=>$role){
    		 $field['choices'][ $k ] = $k;
    	}
        return $field;
        
    }
    add_filter('acf/load_field/name=underconstruction_roles', 'acf_load_underconstruction_roles_field_choices');
    
    /* UNDER CONSTRUCTION */
    if(function_exists('get_field')){
    	add_action('template_redirect', array("underConstruction", 'uc_overrideWP'));
    	add_action('admin_init', array("underConstruction", 'uc_admin_override_WP'));
    	add_action('wp_login', array("underConstruction", 'uc_admin_override_WP'));
    }

    I had the same problem in past with another fields (I don’t remember what fields), I just delete the field group from acf option page and I exported it in php.
    I have a wordpress multisite blog using bedrock/sage theme

Viewing 4 posts - 1 through 4 (of 4 total)