Taxonomy Images parameters
-
Is it possible to get it to display the children of a parent term?
Here is the code i’m using.<?php $terms = apply_filters( 'taxonomy-images-get-terms', '', array( 'taxonomy' => 'mycustomtaxonomy', 'parent' => $termID, ) ); if ( ! empty( $terms ) ) { foreach( (array) $terms as $term ) { $termlink=esc_url( get_term_link( $term, $term->taxonomy ) ); echo '<a href="' . $termlink . '">' . wp_get_attachment_image( $term->image_id, 'gallery-thumb' ) . '</a>'; //echo $term->description; } } ?>
The topic ‘Taxonomy Images parameters’ is closed to new replies.