Support

Account

Home Forums Backend Issues (wp-admin) Multisite Reply To: Multisite

  • Hi there,

    I’m having the same issue here. The plugin is network activated, and works fine on the first site, but then I export the PHP and paste it into my functions.php file, and nothing happens on the other sites. I’ve tried hooking into init too, but had no luck.

    I’m using ACF v. 4.1.1

    Here is the code:

    if(function_exists("register_field_group"))
    {
    	register_field_group(array (
    		'id' => 'acf_portfolio',
    		'title' => 'Portfolio',
    		'fields' => array (
    			array (
    				'key' => 'field_588e77e6e4801',
    				'label' => 'CMS',
    				'name' => 'cms',
    				'type' => 'text',
    				'default_value' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    				'formatting' => 'html',
    				'maxlength' => '',
    			),
    		),
    		'location' => array (
    			array (
    				array (
    					'param' => 'post_type',
    					'operator' => '==',
    					'value' => 'portfolio',
    					'order_no' => 0,
    					'group_no' => 0,
    				),
    			),
    		),
    		'options' => array (
    			'position' => 'normal',
    			'layout' => 'no_box',
    			'hide_on_screen' => array (
    			),
    		),
    		'menu_order' => 0,
    	));
    }

    Thanks!