icon is not showing up
-
Unfortunately the PHP function is not working for me. Below is my code. What do I do wrong?
-
<?php
$taxonomy = ‘categories’;
$queried_term = get_query_var($taxonomy);
$terms = get_terms($taxonomy, ‘slug=’.$queried_term);
if ($terms) {
foreach($terms as $term) {
?>
<li class=”cat-<?php echo $term->term_id ?>”>
<?php tax_icons_output_term_icon( $term_id, $class ); ?>
<?php echo $term->name .’ (‘. $term->count . ‘)’ ?>
<?php}
}
?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘icon is not showing up’ is closed to new replies.