How do I get Custom ACF fields from a Category in the query loop?

I’ve created a new field against Category in ACF, it’s called “Icon”. When I setup a query loop against tags and then categories, I’m not seeing this field in the Dynamic data, like I would for posts. How can I access this custom field? I’ve tried {acf_icon} and that does not work.

I used a custom code block.
You can’t access as post meta (in acf get_field(‘field_name’, post_id), you have to access as term meta. Where post_id is just the ID like 1, 15 etc. With terms you have to prepend it with term_ - so get_field(‘field_name’, term_1)

<?php
$term_id = \Bricks\Query::get_loop_object_id();
$iconFetch = "term_" . $term_id;
$term_icon = get_field( 'mmenu_icon', $iconFetch );
echo '<p><i class="fa bricks-color-secondary ' . $term_icon . '"></i></p>';
?>

Line 1 - gets the ID of the current loop item (in term loop).
Then I use the ACF helper get_field(‘field_name’, term_ID); constructed from the $term_id

Hopefully that gives you enough to work with.