I have an image field on category terms with the output set to array. For some reason in my category.php it returns the ID of the image however. In other template files like index.php or single.php it does return the array as expected.
Putting the exact same code, for example get_field('image', 'category_2'), gives me different outputs…
It’s extremely difficult to eliminate all the possibilities like in the original post.
For example, adding additional post type to a site would mean having additional problems in the future. Or returning posts that you don’t want from a post type you don’t really want for search results.
A better solution would be to make sure that you are currently querying a post type that can have ‘category’ as a term.