Using the function within get_terms
-
I successfully pulled the icon within a query, however I’m having trouble getting it to show up within get_terms.
<?php $terms = get_terms('expertise-categories', 'hide_empty=0' ); ?> <?php foreach( $terms as $term ): ?> <?php $termID = $term->term_id; ?> <?php if (function_exists('the_icon')) { the_icon(array('size=large'), 'taxonomy', $termID, true); } ?> etc..Do you see what I’m doing wrong?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Using the function within get_terms’ is closed to new replies.