
I have a field group that contains two taxonomy fields and three file fields. I can’t for the life of me figure out how to display the values of either field type. I have read http://www.advancedcustomfields.com/resources/taxonomy/, http://www.advancedcustomfields.com/resources/how-to-get-values-from-a-taxonomy-term/, and http://www.advancedcustomfields.com/resources/file/, and tried a number of combinations of things described there, but nothing works. The context is the archive template for the custom post type that contains the fields – The post loop and regular text fields work fine.
There is only one value for each taxonomy. One of them is called “preacher” – using that as an example, get_field(‘preacher’) returns a simple integer, not an array, as the docs say it should. I don’t know how to get from that integer to its string term.
In the case of the file fields, one of which is called “audio”, get_field(‘audio’) is NULL for both posts that don’t have an audio file and posts that do.