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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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']; ?>" />