Support » Plugin: Taxonomy Images » [Plugin: Taxonomy Images] Remove links from images

  • This plugin is awesome. I’m using it to show colours associated with a post.

    One thing I can’t figure out is how to remove the links to the taxonomy archives from the taxonomy images (they’re not required at this stage).

    The code I’m using to call the taxonomy images in my template is:

    <?php print apply_filters( 'taxonomy-images-list-the-terms', '', array(
    	'after'        => '</div>',
    	'after_image'  => '</span>',
    	'before'       => '<div class="swatches">',
    	'before_image' => '<span>',
    	'image_size'   => 'swatch',
    	'taxonomy'     => 'colours',
    ) ); ?>

    Can anyone help me with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did some more digging in the support archives. This thread solved it for me.

    Here’s the code stevejonesdev’s posted for those who need it.

    $categories =  get_categories(array( 'taxonomy' => 'series' ));
     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], 'medium' );

    Actually, not quite solved. This removed the links but made it so all my posts had the same taxonomy images (even though I specified different ones).

    If anyone knows another method, that would be much appreciated.

    Has anyone found a solution for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Taxonomy Images] Remove links from images’ is closed to new replies.