WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Taxonomy Images II

This plugin allows you to upload images for categories and custom taxonomies, and provides a template tag to show the image(s) in your theme.

= Tag: ciii_category_images() && ciii_term_images()

=

<?php ciii_category_images(); ?>

Used within the loop, the above template tag will show the thumbnails for all the category images for the category of that post. If some categories have no image, no image is shown for that category (i.e. there is no default image). You will need to style the HTML output yourself.

<?php ciii_category_images( 'category_ids=37,27' ); ?>

Used anywhere and provided with category IDs, the above template tag will show the thumbnails for all the categories specified. If some categories have no image, no image is shown for that category (i.e. there is no default image here either).

(Note that this tag will get confused if you use it outside the loop. If you want to add a single image to your category archive pages, please use ciii_category_archive_image() below.)

<?php ciii_term_images( 'post_tag' ); ?>

Used within the loop, the above template tag will show the thumbnails for all the term images for the specified taxonomy (in this case 'post_tag') which are associated with that post. If some terms have no image, no image is shown for that term (i.e. there is no default image). You will need to style the HTML output yourself.

<?php ciii_term_images( 'post_tag', category_ids=37,27' ); ?>

Used anywhere and provided with term IDs, the above template tag will show the thumbnails for all the terms specified. If some terms have no image, no image is shown for that term (i.e. there is no default image here either). You will need to style the HTML output yourself.

You can pass the show_description parameter to not show the term or category description, and the size parameter to specify either 'original' or 'thumbnail'.

= Tag: ciii_category_archive_image()

=

<?php ciii_category_archive_image(); ?>

This tag is designed to be used on the category archive page, either inside or outside the loop. It will show the image for the category in question.

= Other notes

=

You can specify the maximum side of the category image thumbnail in "Settings > Category Images II". You can upload, and delete, images for each category from "Manage > Categories", click into each category you wish to edit and you'll see the uploading and deletion controls (deletion controls only show up if the category already has an image uploaded).

The HTML output is fairly well classed, but if you need to adapt it you can. Create a directory in your theme called "view", and a directory within that one called "category-images-ii". Then copy the template files view/category-images-ii/term-images.php from the plugin directory into your theme directory and amend as you need. If these files exist in these directories in your theme they will override the ones in the plugin directory. This is good because it means that when you update the plugin you can simply overwrite the old plugin directory as you haven't changed any files in it. All hail John Godley for the code which allows this magic to happen.

Plugin initially produced on behalf of Puffbox.

Is this plugin lacking a feature you want? I'm happy to accept offers of feature sponsorship: contact me and we can discuss your ideas.

Any issues: contact me.

Requires: 3.2 or higher
Compatible up to: 3.2.1
Last Updated: 2011-8-20
Downloads: 21,577

Ratings

3 stars
3.1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1
75,4,3
0,3,0
25,4,1
27,11,3
100,1,1
0,1,0
17,6,1
0,1,0
50,2,1
0,1,0 0,1,0
0,5,0 100,1,1 0,1,0 38,16,6 100,2,2
0,2,0
33,9,3
40,5,2
50,2,1
100,1,1
100,1,1
100,1,1