Instead of using get_the_category()
use get_terms()
so something like this:
<img src="https://wordpress.stackexchange.com/questions/77017/whatever/directory/<?php $terms = get_terms("TAXONOMY_NAME'); echo $terms[0]->term_name; ?>.jpg" />
Instead of using get_the_category()
use get_terms()
so something like this:
<img src="https://wordpress.stackexchange.com/questions/77017/whatever/directory/<?php $terms = get_terms("TAXONOMY_NAME'); echo $terms[0]->term_name; ?>.jpg" />