[Resolved] Remove field group from custom post type
This thread is resolved. Here is a description of the problem and solution.
Problem:
A custom field group shows on posts types where it is not supposed to.
Solution:
There was a bug in Types 3.2.5 that broke the conditional display of field groups but the fix did not work in this case, the specifics of which were that there was an empty condition in the data-dependent tab of the field group display conditions that broke this. A solution for that will be included in another Types update.
I am trying to: disconnect field group from post type
Link to a page where the issue can be seen: hidden link
I expected to see: custom post 'unit' with field group 'unit'
Instead, I got: custom post 'unit' with field groups 'unit' and 'building'
NOTES:
'building' field group had previously been attached to unit post type but that is not appropriate so I edited the field group so it only is attached to 'building' post type. But it won't go away.
Yes, Nigel, you understand the basic issue. However, I was able to change the settings without trouble; the problem is that the buildings field group still shows up on the units post type even though it is no longer in the list of post types for that field group.
OK, I have a report of something similar, which I cannot reproduce, and which I couldn't even see on the client's site that I had access to (what I saw didn't match their screenshots).
If you have a browser that you wouldn't have visited the site backend with before it would be helpful to log in with that browser and see if you see the same.
If it works as expected that would confirm that it's a caching issue, in which case can you try to clear your browser cache and perform a hard reload?
We've had other issues relating to custom field groups, but I cannot reproduce this one, nor identify exactly why it is occurring on your site. I thought perhaps it was to do with the relationship between units and buildings, but seemingly not, as I can't reproduce the issue with a similar set up.
I've taken a copy of your site and if I can't spot the problem when I install it locally, I'll pass it on to my colleagues.
The developers have been working on a solution for the related issues where field groups are appearing where they should not, and I've tested their solution on my copy of your site, but it still doesn't work.
I have passed the copy of your site to them so they can identify what is specific to your site that is causing this, so that they can include a fix for it at the same time.
I'm escalating this thread and will keep you posted.
For that field group, in the where-to-display settings, there is an empty condition in the data-dependent tab (screenshot).
We don't know how it got there, but the devs will add something to the UI to make it clear that there is a condition being applied so that it won't be such a puzzle in the future.
We'll be releasing a Types hotfix update probably on Monday. This is unlikely to be added in time for that, but you can get this working again on your site by simply deleting that condition.