Custom Taxonomy Images with Advanced Custom Fields

As per the plugin documentation:

The second parameter needed is a string in the format “$type_$id”.

// get value from a taxonomy (taxonomy = "category", id = 3)
$value = get_field('field_name', 'category_3');

// get value from a taxonomy (taxonomy = "events", id = 76)
$value = get_field('field_name', 'events_76');

Leave a Comment