Get only de active term
-
Hi all,
I try to get only de current term by post.
I use this function:
<?php query_posts('orderby=name&order=asc&cat=5&showposts=100'); ?> <?php while (have_posts()) : the_post(); ?> <?php $categories = get_categories(array( 'taxonomy' => 'atributos' )); foreach ($categories as $category) { $tax_term_id = $category->term_taxonomy_id; $images = get_option('taxonomy_image_plugin'); echo wp_get_attachment_image( $images[$tax_term_id], 'thumbnail' ); } ?>
But is print all terms with image, not only select by post.
Thks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get only de active term’ is closed to new replies.