[Plugin: Taxonomy Images] How to add for each thumbnail its name and id ?
-
Hello,
First, thanks for this plugin which works perfecly for me !
There is just one thing I don’t manage to do and I need your help :
In my website, I have product sheets (this is paint) where I want to list available colors.I’ve done a specific template and view (with Types and View plugins) and I added code to functions.php in order to use a shortcode named “taximage” into my template (I can’t use php code into it).
So here is my code :
add_shortcode('taximage', 'taximage'); function taximage() { global $post; return apply_filters( 'taxonomy-images-list-the-terms', '', array( 'post_id' => $post->ID, 'taxonomy' => 'color', 'after' => '</div>', 'after_image' => '</span>', 'before' => '<div class="my-class">', 'before_image' => '<span style="margin-right: 10px;">', 'image_size' => 'vignette_coul', ) ); }
It displays well the thumbnails where I put the shortcode but I would like to add for each thumbnail the color’s name and id.
Besides, I would like to remove the link on the image.
Thanks in advance for your help !
Caroline
- The topic ‘[Plugin: Taxonomy Images] How to add for each thumbnail its name and id ?’ is closed to new replies.