Well, actually, it appears that my problem was completely unrelated. I went to try your idea, and, having closed my SFTP client for the first time since I started working on this, I had to re-download the functions.php file. It looks like none of my previous changes had successfully uploaded after all. Everything works fine now. Thanks for your help!
Unfortunately not. Good thought on disabling other plugins, but that didn’t work either. I wouldn’t expect this to be the case anyway, I’m very picky about the plugins I use and I avoid using them if possible anyway.
It’s installed as a plugin, and yes, I did trash the original.
Thanks!
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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.