Answers for "how to display the taxonomy image in wordpress"

PHP
0

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']; ?>" />
Posted by: Guest on November-16-2020

Code answers related to "how to display the taxonomy image in wordpress"

Browse Popular Code Answers by Language