Image – #undefined
-
Hello,
I’m fighting with this for more than hour… Can you please help me? Im geeting back “#undefined”<?php $args_list = array( 'taxonomy' => 'kampane_cat_section', // Registered tax name 'show_count' => true, 'hierarchical' => true, 'echo' => '0', 'title_li' => ( '' ) ); $categories = get_categories( $args_list ); foreach ( $categories as $category ) { if (function_exists('get_wp_term_image')) { $meta_image = get_wp_term_image($category->term_id); } echo '<li><a href="' . get_category_link( $category->term_id ) . '"><svg class="svgicon svgicon-menu"><use xlink:href="' . $meta_image . '"></use></svg><span>' . $category->name . '</span></a></li>'; } ?>
- The topic ‘Image – #undefined’ is closed to new replies.