Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi Jacob,

    Hey, I tried what you did but had no chance. Doesn’t work for me. Only appears a white space. In my case the code looks like this:

    <?php $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy' => 'brands') );
    	if ( ! empty( $terms ) ) { echo '<ul">';
    	foreach( (array) $terms as $term ) {
    	echo '<li>';
    	echo '<div><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, '' ) . '</a></div>';
    	echo '<div><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . $term->name . '</a></div>';
    	echo '</li>';
    	  }
    	echo '</ul>';
      }
    ?>
Viewing 1 replies (of 1 total)