WordPress   

Get current post’s custom taxonomy including ACF field

$terms = get_the_terms( $post->ID , 'news_category' );
if ( $terms != null ){
	foreach( $terms as $term ) {
		echo '<a href="' . esc_url( get_category_link( $term->term_id ) ) . '" alt="' . esc_attr( sprintf( __( 'View all posts in %s', 'textdomain' ), $term->name ) ) . '">' . esc_html( $term->name ) . '</a>';
		echo  get_field('news_cat_img', $term);
		unset($term);
	} 
}
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us

Got an idea? We'll turn it into reality.

Tell us what you're building, what's broken, or what numbers need to move. We'll come back within one business day with a short plan — no long decks, no sales calls without purpose.

Response time: First reply within 1 business day on 100% of messages.
Transparent scope: Fixed proposals with weekly check-ins & live task tracking.
Ship-ready builds: Every engagement leaves behind documented, transferable work.
Long-term partners: Ongoing retainers for support, SEO, ads, and content.