Hi, I am working with a custom category taxonomy field named ‘category-tax’, that returns Term ID. Having a tough time figuring out how to get the parent category returned, when the parent category is designated in the post. It seems I am only getting the parent category returned when the child category is designated.
I am working with what appears to be non-native ACF code, it sort of functions with this exception but would like to clean this up so it works as intended. Wondering if anyone could shed some light on how to sort this out?