how to display the taxonomy image in wordpress

Solutions on MaxInterview for how to display the taxonomy image in wordpress by the best coders in the world

showing results for - "how to display the taxonomy image in wordpress"
Ewen
18 Mar 2019
1<?php
2
3// get the current taxonomy term
4$term = get_queried_object();
5
6// vars
7$image = get_field('cat_image', $term);
8
9?>
10
11<img src="<?php echo $image['url']; ?>" />