Sorry, that should be wp_get_object_terms()' and there is an extra
;` probably causing an error in the last bit of code.
But this is basically what you need to do. To get the field from the term/taxonomy you need to provide ACF with the right $post_id value. See: https://www.advancedcustomfields.com/resources/adding-fields-taxonomy-term/