Support » Plugin: Taxonomy Images » Image url for featured image of each taxonomy

  • I’m trying to grab the img src for featured image of each taxonomy (inside of get_terms).
    Nothing is being pulled in. Please help!

    <?php
    				$kitchen_terms = get_terms( 'yourkitchen');
    
    				if ( ! empty( $kitchen_terms ) && ! is_wp_error( $kitchen_terms ) ){
    					foreach ( $kitchen_terms as $kitchen_term ) {
    
    						echo '<article><a href="/yourkitchen/'. $kitchen_term->name .'"><div class="image" style="background-image:url('. apply_filters( 'taxonomy-images-list-the-terms', '') .');" /></div></a><h2 class="entry-title"><a href="/category/'. $kitchen_term->slug .'">' . $kitchen_term->name . '</h2></a></article>';
    					}
    				}
    			?>

    https://wordpress.org/plugins/taxonomy-images/

  • The topic ‘Image url for featured image of each taxonomy’ is closed to new replies.