Not working on page template
-
Hello, thanks for the plugin,
But I have a problem, in a page template not showing the image.
<div class="row"><?php foreach ( $terms as $term ) { $i++; ?> <div class="col-md-4"> <?php if (function_exists('get_wp_term_image')) { $meta_image = get_wp_term_image($term_id); //It will give category/term image url echo $meta_image; // category/term image url } ?> <a href="<?php echo get_term_link($term); ?>"><?php echo $term->name ?></a> </div> <?php //$term_list .= '<div class="col-md-4"><a href="' . get_term_link( $term ) . '" title="' . sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) . '">' . $term->name . '</div>'; } ?></div>
Has the code an error?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Not working on page template’ is closed to new replies.