Pull image another way besides apply_filters ?
-
Is there a way to pull the taxonomy image besides using apply_filters? I cannot get anything to print using it. I think the way our taxonomies are being pulled doesn’t allow of apply_filters, or I just don’t know where to put it.
Below is the sample code where I need to pull the image. I need to put it right under the H3 tag. Any guidance would be greatly appreciated : )
<? $args = array( 'hide_empty' => 0, 'child_of' => 0, 'pad_counts' => 1, 'hierarchical' => 1 ); $tax_terms = get_terms('review-categories', $args); $tax_terms = wp_list_filter($tax_terms,array('parent'=>0)); ?> <div class="reviews-category-list row stacked"> <?php foreach ($tax_terms as $tax_term) { echo '<div class="column col-half">'; echo '<h3><span class="count">'. sprintf( __("%s Reviews", "framework"), $tax_term->count) .'</span><a href="' . esc_attr(get_term_link($tax_term, 'review-categories')) . '" title="' . sprintf( __( 'View all posts in %s', 'framework' ), $tax_term->name ) . '" ' . '>' . $tax_term->name.' <span>→</span></a></h3>';
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Pull image another way besides apply_filters ?’ is closed to new replies.