Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to display the taxonomy image in wordpress

<?php

// get the current taxonomy term
$term = get_queried_object();

// vars
$image = get_field('cat_image', $term);

?>

<img src="<?php echo $image['url']; ?>" />
 
PREVIOUS NEXT
Tagged: #display #taxonomy #image #wordpress
ADD COMMENT
Topic
Name
7+5 =