Hello, I have a field group within which I need some fields that conditionally display based on a specific value of a taxonomy on my post.
I believe that is not possible, and so I have created a new field group which clones many fields from my first group, and adds the additional ones required for my specific taxonomy. I can then conditionally display either my original field group, or my new ‘mostly cloned’ one if the specific taxonomy is chosen.
The problem is that I want to query one single field group name rather than having to duplicate my GraphQL. So that instead of having to query
group {
A
B
C
D
}
mostlyClonedGroup {
A
C
D
E
F
}
I can just query
group {
A
B
C
D
E
F
}
I have given the groups the same GraphQL Type Name but it will not allow me to access the new fields. So is this possible? If it isn’t, is there a better way to achieve the same thing? Thank you.