So if the “country” field is a taxonomy field with a single value (i.e. the field’s Appearance is radio buttons or a single-selection select/drop-down menu), and you want to display the term name, then you could use the get_term_field()
function in WordPress:
<li><?php echo get_term_field( 'name', get_field('country') ); ?></li>
Or using get_term()
:
<li><?php $term = get_term( get_field('country') ); echo $term->name; ?></li>
I hope that helps you.
UPDATE
ACF may not be using the proper post ID, so try replacing the get_field('country')
with this one:
get_field( 'country', get_the_ID() )
So:
<li><?php echo get_term_field( 'name', get_field( 'country', get_the_ID() ) ); ?></li>
UPDATE 2
If you want to display the “country” terms/categories the post was assigned to, then:
<li><?php the_terms( get_the_ID(), 'country' ); ?></li>
would do it. You don’t need ACF or any plugin to do that.. except maybe, you need a plugin for registering/creating the custom taxonomy and/or associating it to certain post types.
UPDATE 3
Or… when you create/edit the ACF field, make sure to select the proper taxonomy, which in your case, I guess it’s “Country” or “Countries”? See the “Taxonomy” option below the “Required?” option on this image