Taxonomy Images II Wordpress Plugin - Rating, Reviews, Demo & Download

Taxonomy Images II Wordpress Plugin - Rating, Reviews, Demo & Download
3.7 Average out of 3 ratings
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

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.

To activate the images for a custom taxonomy, go to Settings > Category Images II.

To upload an image for a category, or a term in a custom taxonomy, go to the edit screen for that category or term.

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.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.

Screenshots

No screenshots provided


Reviews & Comments