Current Version: 1.0
This is not an officially released plugin. Any updates will only be available from this page. I may decide to make a public release on WordPress.org in the future, but not right now.
Installation
- Upload
iconified-taxonomiesto the
/wp-content/plugins/directory. - Activate the plugin through the
Pluginsmenu in WordPress. - Add the correct function to your theme’s files, using the FAQs below.
- In your WordPress uploads folder (/wp-content/uploads), create a new folder called iconified. In the new iconified folder (/wp-content/uploads/iconified) create two new folders, cat and tag. The cat folder (/wp-content/uploads/iconified/cat) is where you should upload all category icons, while the tag folder (/wp-content/uploads/iconified/tag) is where you should upload all tag icons. The icons can be either JPG, GIF, or PNG images, and should be named after the category slug or tag slug for which you want it to display. For example, a PNG icon for the category WordPress Plugins which has a category slug of wordpress-plugins should be named wordpress-plugins.png and should be placed in the /wp-content/uploads/iconified/cat folder.
FAQs
How do I add iconified categories?
- Categories are the default output of the plugin, so you can simply add
<?php iconified_taxonomies(); ?>
to your theme files where you would like the categories printed. - Alternatively, you can add
<?php iconified_taxonomies( 'cat' ); ?>
to your theme files to get the same output.
How do I add iconified tags?
- Add
<?php iconified_taxonomies( 'tag' ); ?>to your theme files where you would like the tags printed.
What arguments does the function accept?
- The function is set up as
iconified_taxonomies( $taxtype = 'cat', $separator = ', ', $before = '', $after = '' )
- $taxtype is set to ‘cat’ by default – which outputs categories, but it can also be set to ‘tag’ to output tags. Example
- $separator is set to ‘, ‘ by default – which outputs the selected taxonomy as comma separated values. $separator can be set to any string value. Example
- $before is empty by default, and $after is empty by default as well. You can set $before and $after if you wish to add a wrapper to each item. Example
Examples
- $taxtype
- Output a comma separated list of categories:
<?php iconified_taxonomies(); ?>
<?php iconified_taxonomies('cat'); ?> - Output a comma separated list of tags:
<?php iconified_taxonomies('tag'); ?>
- Output a comma separated list of categories:
- $separator
- Output a bullet separated list of categories:
<?php iconified_taxonomies('cat', ' " '); ?> - Output each tag on a separate line:
<?php iconified_taxonomies('tag', '<br />'); ?>
- Output a bullet separated list of categories:
- $before and $after
- Output each category as a list item:
<ul><?php iconified_taxonomies('cat', '', '<li>', '</li>'); ?></ul> - Output each tag, separated by a bullet, in bold:
<?php iconified_taxonomies('tag', ' " ', '<strong>', '</strong>'); ?>
- Output each category as a list item:



Leave a Reply