WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images
Caption to image (1 post)

  1. tpecop
    Member
    Posted 1 year ago #

    <?php
    	$terms = apply_filters( 'taxonomy-images-get-terms', null, array(
    		'taxonomy' => 'model',
    	) );
    	if ( ! empty( $terms ) ) {
    		print ' ';
    		foreach( (array) $terms as $term ) {
    			print ' <a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'detail' ) . '</a>' ;
    		} print ' ';
    	}
    ?>
    </div>

    Im using this code to display custom tax as images. All i want to add caption below image. Because its not showing. It it possible? Help please. Thanks

    http://wordpress.org/extend/plugins/taxonomy-images/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic