WP получить категорию ACF в почте
<?php
$categories= get_the_category();
if (!empty($categories)) {
$term_id = $categories[0]->term_id;
$image = get_field('category-image-field', 'term_'.$term_id);
// what you do from here depends on what the field is returning
}
?>
Weary Wildebeest