• Hello,

    How Can I print term image for ‘product_cat’ taxonomy here in below my code have that print cat name

    <br />
     $terms = get_terms("product_cat" , 'child_of=0&parent=0&hide_empty=0');</p>
    <p>			 $count = count($terms);</p>
    <p>			 if ( $count > 0 ){</p>
    <p>				 echo "
    <ul>";</p>
    <p>				 foreach ($terms as $term ) {</p>
    <p>				   	echo "
    <li><a>. $term->name . </a></li>
    ";<br />
    }<br />
    }
    </ul>

The topic ‘Print term image for custom taxonomy’ is closed to new replies.