+1 same issue here, we are getting conflicts in GitHub because the json file is not syncing correctly (Does not show as available to sync even if you change the Field Group).
I’ve fixed this now, it was the order of the functions – the functions were above the code that created the options page.
I’ve looked into this more and the problem is nothing to do with the names.
It’s if I attach functions to the options.
For example, I have an option called “hide_tools” and then a function like so:
if(get_field('hide_tools', 'options')) {
function remove_admin_menu_items() {
if(!current_user_can('activate_plugins')) {
$remove_menu_items = array(('Tools'));
global $menu;
end ($menu);
while (prev($menu)){
$item = explode(' ',$menu[key($menu)][0]);
if(in_array($item[0] != NULL?$item[0]:"" , $remove_menu_items)){
unset($menu[key($menu)]);}
}
}
}
add_action('admin_menu', 'remove_admin_menu_items');
}
As long as that function exists in my plugin, the “Hide Tools” checkbox doesn’t appear.
This must mean ACF is choking on that function, but this only happens when it is imported using PHP.
What can I do?
Actually, it doesn’t seem to matter what they are called. The fields are breaking no matter what I call them. Must be something to do with how many there are or something?
Help! :-/
Edit: this was incorrect.
Hi Elliot
I encountered this problem again, in ACF5 PRO. It baffled me for a while then I realised the name was too long.
Are you going to add a check for long names?
Thanks
Shaun
Hi Elliot
I think the problem was max_input_vars on the server. I’ll try again soon and let you know.
That worked for me, thanks Elliot.
Also I’m using a Linux server, and have tried disabling all other plugins but the problem still occurs.
I’m having this problem as well, after updating I’ve lost lots of data in relationship fields.
It’s also a custom post type relationship field in a custom post type.
Please help!
This was in the latest patch notes but I don’t see it, is it coming in a future update?
I’ve also noticed that the revisions appear to work for pages/posts you’ve already created, but if you create a new page under WP 3.6 and add some ACF custom fields then none of it shows up in the revisions interface.
It does look as though this is a problem with The Events Calendar though, not ACF: http://wordpress.org/support/topic/interferes-with-acf-relationship-field?replies=4
I too am having this problem.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.