I would like to show in a custom taxomony list icons instead of taxonomy name , but just for the ones with image asociated, where there is no image let show the taxonomy name .
i have installed taxonomy-images plugin also , but it only adds the images , does not replace the taxonomy name. tnx
this is the code i have in the archive{custom type}.php file
<?php query_posts( array( 'post_type' => 'custom_type','posts_per_page' => 20 ) ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="col-md-3 clearfix"><div class="row"><article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article">
<?php // end article header ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
<section class="entry-content" style="text-align:center;padding:20px;">
<div class="thumcap2"><?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail(thumbnail);
}
?></a><a href="<?php the_permalink() ?>" class="title2" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
</section> <?php // end article section ?>
<footer class="article-footer" style="text-align:center;">
<?php
printf( __( ' %4$s', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' )), bones_get_the_author_posts_link(), get_the_term_list( get_the_ID(), 'custom_cat', ' ', ' | ', '' ) );
?>
</footer> <?php // end article footer ?>
</article></div></div> <?php // end article ?>
<?php endwhile; ?><div class="clearfix"></div>
query_posts
. Second, it's unclear what you've tried yourself so far and what went wrong. Please elaborate.showposts
has been depreciated a long time ago. You should be usingposts_per_page