Hi there,
I’ve just managed to muster something together for this, so thought to share with you and the community as others might find it useful.
add_shortcode( 'shortcode_name', function() {
$categories= get_the_category();
$term = get_category($categories[0]->term_id);
$shortcode_name= get_field('shortcode_name', $term);
return $shortcode_name;
} );
Where replacing ‘shortcode_name’ for the custom field of the category will allow you to add the shortcode into the post as [shortcode_name].
Kind regards,
Will