Categories Images

Categories Images is a WordPress plugin which allow you to add an image for each category (or term), it is so easy to user. This plugin will create a new text input that will had the image url of the category, in both forms when adding a new category or edit an existing one, you can put a url for the image or upload it bu click on the text input.

Installation:

Open your wordpress admin panel, then plugins menu > Add New and search for ‘Categories Images’.

Update 06-10-2012: Finally I got some time to test the plugin in WordPress MU and now I confirm that the plugin works so fine whether you choose to activate the plugin by blog or using network activation from your network control panel

Update 25-01-2013: A great update had been made to this plugin, and hope you liked it, Thank so much to Joe Tse http://tkjune.com

Update 14-06-2013: I had updated the plugin with some new features like using WordPress new media uploader and new sub menu (Categories Images) in Settings menu allowing you to exclude any taxonomies from the plugin, this for fixing and avoiding any conflicts with another plugins like WooCommerce plugin, hope you all like the last update.

Update 20-12-2013: I had updated the plugin with new features like resizing images please check the docs above for more help about using this new feature, and also adding support for Spanish language. Thanks so much to Maria Ramos and to Rahil Wazir for their help.

Update 2.5 28-03-2015: A nice update which introduce a new function to display category or taxonomy image directly with support for size and alt and more attributes, please check the documentation above. Also adding support for Ukrainian language, thanks so much to Michael Yunat.

Hi, I have a doubt: I uploaded the image for a category, however, after that, I make click on “Insert in post” and nothing is added to “Image” field on the category edition screen. How do I have to upload an image within admin area?

I can’t guess what is the error in your case, but any way you can copy the uploaded image link and paste it into the image field, click on image field, copy the uploaded image link from your media library, close the upload box or press escape on the keyboard, then paste the copied link into image field.

Hi, I’m having this problem as well. When I click on the image field, it does not allow for pasting anything and simply launches the media uploader, and when I choose an image or a url or upload an image from my computer, then hit the button that says use the image, the box closes but nothing appears in the image field. There is no way I can get an image URL to appear in that field. I’m on the latest version of WordPress. Any ideas?

may be something wrong with your javascript, most the users had reported it works great with the last ver of wordpress, but anyway you can copy the image url manually and put it in image field, it will work fine

Thanks so much, hope your problem had been solved, if you want to list categories with images anywhere, you can use the loop method in documentation, and this will be useful if the post had more than 1 category.

Thanks, you can easily pass any arguments you want to get_categories() function, for example (as in your case) you want to exclude one or more categories:
$args = array( ‘exclude’ => ‘1,2’ );
as you noticed I had excluded category id 1 and category id 2, and then pass this array to get_categories() function like this:
get_categories($args)
btw, and you can use more arguments as explained in the wordpress codex here: http://codex.wordpress.org/Function_Reference/get_categories

Ok simply after downloading and activating the plugin, just use one of the 4 examples above like this way:

– use the 1st if you want to get the category icon url in (category/taxonomy) template.
– use the 2nd or 3rd examples if you want to get a list of all (categories/taxonomies) in any template.
– use the 4th example in single template in case your post have more than one category and you want to list them.
hope this would help.

Thanks. I was thinking on it last night and I think the easiest would be to expand the function that pulls the image like this…z_taxonomy_image_url($cat->term_id, 'thumbnail')
As it is now, I’m hard coding the image size of the icon and using 3 different sizes for different displays.

currently you can change the category/taxonomy image size before inserting it to the image field while adding or editing any category/taxnonomy (I mean before pressing insert into post button). I had made it this way to let you even use outside link of the image, not just hosted images on your website.
But ok, I will think of changing this to make it more flexible about getting the image url.
Thanks for sharing your thoughts 🙂

Hiya, could you show me how I can show just the child categories of a particular category. I basically have a main category lets say “Drinks” and under them have “Wines” “Fizzy” “Beer” etc and I just want to show the categories and images with those child categories.

Thanks Bahaa 🙂
Simply use the last example in the documentation and it will work fine if you use the default wordpress loop.
In case you are using another loop (like using get_posts and foreach) pass the post_id to the function get_the_category and it will work fine.

thanks for this plugin! now I have a little problem. I have two taxonomies that use some terms with the same name. now when I call z_taxonomy_image_url() with $term->term_id I get the same image for both terms called “hogan” which are in two different taxonomies. I tried changing the slug of one term but it still uses the last defined image on either of the terms.

Thanks, wordpress categories does not have custom fields, only posts or pages that supports custom fields if that what you asked for, I’m using wordpress options to save each category or taxonomy image in my plugin.

Thanks for making the best categories images plugin available, I’ve got it working great with my standard posts, however I’m having trouble using it with my Custom Post Type. I want to list all the categories for my type ‘product’ with their respective pictures, and I can’t seem to do so with any of the examples above. I’m a bit of a WordPress noob and not used to get_categories, which doesn’t allow me to use post_type to name my custom post type – could you explain/post the code for how to do this?

Thanks so much, yes exactly you can’t use get_categories while you need categories of a custom post, so you can use the 3rd example in the documentation and don’t forget to change ‘your_taxonomy’ with the taxonomy name that you register with your custom post.

This plugin looks great. One question: How can I load the image in the header.php (outside loop) for the category “page”, I think it is called category archive page. Can you provide a php example ? Thanks!

you can use is_category() function in the header to check if you are in category template or not, like this example:
< ?php
if (is_category()) :
if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url();
endif; ?>
?>

But I have a problem. By now, I have a category for “featured” posts to put certain posts in a special position in the blog. i don’t want these categories to appear as category images so I just gave them a 1x1px transparent image which, of course, kills my layout (in a way).

Is there a way to exclude certain categories from showing up as images?
Not giving them an image at all is not an option since some browsers still show the (X) “image not found”-thingy.

Simply you can assign the result to a variable and check if this variable is empty or not, check this code:
< ?php
$cat_image = z_taxonomy_image_url($cat->term_id);
if (!empty($cat_image)) :
?>
// your category image
< ?php endif; ?>

How i can show only the taxonomy images of the post?
namely I have for example: taxonomy -> Social Networks. and i would like show in the entry or profile the social network(taxonomy images) of this person.
Expample:
Name: John Brad
Social Network: facebook(image) | Twitter(image)
Descrption: xxxxxxxxxxxxxxxxxxxx

Ok, so i have more social networks: digg, twenty, etc… in the taxonomies, but I just want to show the of that profile

I created a new custom theme, and i have it in my localhost, not is online…Only i need know if i can use other system without foreach for that only show the taxonomies for the post, no all of taxonomies. I use this:

<a href="slug, ‘socialnetworks’); ?>”>
<img src="term_id); ?>” />

But this print me all the taxonomies son and i only want show the profile taxonomies.

ok I’m sorry I think I got you wrong, ok let us simply use the 2nd example in for loop method in the documentation, all you have to do is change get_terms(‘your_taxonomy’) to get_terms(‘your_taxonomy’, array(‘parent’ => 0))
This code means that you want to loop for parent taxonomies only (looping for the top level taxonomies), I’m sure this will fix your problem.

Hi… I’m using this in my project on taxonomy-productcategory.php so that I can show the subcategories of the parent terms. I have got it to work by hardcoding foreach (get_terms('productcategory', array('parent' => 6)) as $cat) : and it will show me all subcategories, but I need to code it so that it picks up what category page it’s on dynamically. Any help would be greatly appreciated!! Thanks

Thanks for enhancing my plugin 🙂 but let me explain something, the reason I use the full image url to not force the user to host the image at his blog, he can use any url from anywhere, also I’m using it to let him easily can use any re-sizing image tools like timthumb.
I had also check the code, it will only work in case you have a taxonomy called ‘package_cat’ because you had disabled my foreach 🙂 so by default the plugin after your modifications won’t work, I think you should test it on a new wordpress installation. Thanks again 🙂

Great, then use the last example above, put it anywhere at your single.php tempalte.
And if you where using taxonomies (not categories) replace the function get_the_category(); with the function get_the_terms( $id, $taxonomy ); where $id is the post_id and $taxonomy is your taxonomy. I will update the documentation and add another example for that, Thanks.

Hey Zahlan, I was wandering if was possible to use a resize command when calling the category image, this way I only need 1 higher quality image which can then be resized to make the smaller thumbnail versions as well. If this isn’t possible how can I have 2 image fields per category.
Thanks in advance.

Hey, Thanks for using my plugin.
The current ver of the plugin does not support image resizing so I recommend to you to use TimThumb plugin, you can upload a high quality image and use the Timthumb plugin easily to resize it while displaying it 🙂

Hi – Nicely done plugin. I was using it fine and then I changed the folder structure so that all images are stored in the same folder (not organized by date) and this seems to have broken it. Unfortunately I am have to use that folder structure. Is there a way around this? Cheers,

Unfortunately if you change the upload folder structure won’t display images because the image full path is stored as the image filed value, so you have to maintain the upload folder structure or you have to change all categories images to the new structure

dear zahlan!
i think I like your plugin, but don´t know now how to use it properly. I want to replace the two categories in the left sidebar with one image each. but i don´t know where to put that code exactly to achieve that.

Dear Zahlan,
Yes, I have tried the one you told me, but it gave me an error.
I was putting it in the functions.php at the end, but am not sure where to put exactly. I´m not familiar with php coding, have read a bit about it but its very hard to learn within some days…. 😉

It’s Ok, no problem, 1st you shouldn’t put my example at your functions.php you should put it inside your theme, for example if you want to list categories in sidebar or something like that, use the 1st loop example and put it into sidebar.php or if you want to list categories in home put the code into index.php

First of all. Thanks for the simple but great plugin. I’ve got just one advice. If you’d change line 29 in categories-images.php form “wp_enqueue_script(‘thickbox’);” to “wp_enqueue_script(‘thickbox’); wp_enqueue_script(‘media-upload’);” the “Choose Image” popup will resize itself to fit the screen.

dear Zahlan!
actually nothing is happening when I put your code. I can see the image-uploader in the categories and have already put an image. but in the frontend on the page itself the image is not shown.
what am I doing wrong?

hello zahlan,
first thumbs up for the plugin.
recently i updated your plugin to 2.2 and unfortunately, the plugin function is unable to retrieve the image url for display. could you check this issue?
anyways,
thanks

Love the plugin but I can’t get the images to display. I created an image for each category, uploaded and placed the url in each category. The thumbnail in the categories page is populated but the post widgets (home page)do not display the category image. I wanted the category image to be displayed whenever a single post did not have a featured image. What am I missing?

First of all I gotta say what an amazing and wonderful plugin you developed here. Thank you so much! However the issue I’ve run into now is that it seems taxonomy images aren’t working for IE6 users. I know that most people are no longer using it, however my client still has a significant number of those users and he can’t drop them.

Is there any possibility of making some small modifications to the code so that IE6 users can also view the images? IE7 works fine it seems.

I tried again on IE7 and actually it doesn’t seem to work either. IE8 works but not 6 or 7. When I view it on IE7 for a second or two the images are displayed, however after that nothing, they disappear. Is there anyway to get this to work?

I disabled all CSS and unnecessary HTML elements and the problem still persists. The images no matter what won’t show up. This is really problematic in that the client really wants IE7 users to be able to view the site. Is there no other way for you to try and test this?

I’m willing to make a donation or pay per hour if you could resolve this issue, just send me your paypal details.

Hello everybody. Thank you Zahlan for such a useful plugin! I use this categories-images plugin on all of my WordPress projects.

Just wanted to share this note with people using this plugin and the WooCommerce plugin together. Because WooCommerce uses the same button id names “update_image_button” and “remove_image_button”, adding product category images to WooCommerce categories breaks, and neither plugin works for these product categories (taxonomy).

The simple fix for me was to rename these 2 buttons in your plugin to something else, like “update_img_button” and “remove_img_button” so that the jQuery code works and does not conflict with WooCommerce Product Categories. Of course I could update the WooCommerce plugin, but since this plugin is so much lighter and easier to manage, I chose to update this plugin instead.

Perhaps in the future, this plugin could rename these 2 button ids/names so that it works with WooCommerce automatically. Of course this is up to the plugin author, Zahlan.

I was also having some issues with Woocommerce since it has it’s own built in taxonomy image control for product_cats. I found a way to turn off the category image for product cats only by removing the actions and filters for category images for that taxonomy only. This is what I used in my theme functions:

Hello, Zahlan. Firstly, I must thank you for this plugin of yours. It was truly what I was looking for! I successfully posted a list with the images, titles and descriptions on a page so my visitors have an idea of what I blog about.

Unfortunately, there is something I seem unable to do and I could use your help – please note this is not directly related to your plugin, meaning its functioning, so you are free to neglect me any help on the following: I would like to have an image of the proper category appearing next to the post title. Saturday, when I started my blog, everything seemed fine> I used your plugin on both the index and single files and styled it a bit and the category image appeared successfully. However, today when I was doing the list for all categories, I made a new testing post just to see how it worked: the list is working fine but as you should expect, now the icons for the two categories I have are appearing on both my posts.

Is there any chance to make ONLY the correct category image appear within a post? I know that it is possible to show the category images on posts but I am perfectly ignorant as to do it with your plugin, or even if that-s ‘workable’.

You are using the plugin function in a custom loop, so all you have to do is to pass the category_id to the function, for example: z_taxonomy_image_url($cat_id) as $cat_id is the category_id of the post in your loop.

Hello I just installed the plugin and was happy it worked I was able to upload my pic to category (I want to have a feature image at top – I only have one category for posts for my site with no subcategories) the thumb shows in the edit mode but there is no picture in the actual category. I then added your fist code at the top here and I now get just the text path to the image and its not a link just the text. NOTE: I have the gonzo theme and for categories it has a line divider with a label title saying “your browsing x category” I did not want this so I deleted the code in the category template successfully here is the top portion of the file as well I will mark where I deleted code and what that code was. Also please let me know exactly what to input and where as I do not know this stuff well thanks!

I think I’ve found a bug. When you use Editor role you can’t upload images, the path is not copied in the Upload text box after clicking Insert Into Post on the Media popup. Using a custom taxonomy and post type.

With an Admin role it works as expected. Made my client Admin for now, but not ideal.

Hello ! I’ve installed the pluggin in Classipress and used the first code given in this page.
The issue is that I have the url of the image displayed and not the image itself.
I’m not at all used to do things with php. Can uou help please ?
Thanks !

Hello, it’s me again.
The pluggin works so good that I was thinking to use it in my site first page, where the categories are listed (to have like categories thumbnails).
The code done before isn’t working. What I have actually is :

I am using categories to filter blogs.
I have ulploaded the plugin and associated each category with a picture.
The purpose was to have this picture associated in the headbanner for each articles associated with this category.
What else do I need to do in order for this to work?
Many thanks!
Luc

I installed this plugin to change the header-image with the associated category. This really works fine if the category is selected and all all related posts are listed in the content. But when I select a single post from the list, the category image disapears. Even if a post image is uploaded to the selected post it won’t be shown anymore (this works if the plugin is deactivated).
Any possibility to fix it?

This is a really great plugin. Thanks so much for taking the time to create and maintain it. I do have one question, which I hope you have an answer for: How would I display the taxonomy image of a tag outside of the loop?

For example, in my tag archive template, the top section needs to display the current tag’s image and description, just like it would in the category template. The loop doesn’t begin until after the tag image and description. Here’s what I have in my category archive template:

<img src="" />

How would I make this work for tags? I’ve tried all of the examples above, but it doesn’t seem to work without using it within the loop.

Awesome plugin and I love it, i am new in wordpress coding. I use this code

<img src="term_id); ?>” />
<a href="term_id); ?>”>cat_name; ?>

After using this code, category show all the list,when i click in category it does work. I want to make like this: when i click in category,it need to show all the post from the category list. Is this possible?

Hi there, great job on the plugin by the way, its awesome. I have a problem. I’m using wp_list_categories to display my posts and need to somehow include the category images with this. Is there any way to integrate your function in with wp_list_categories?
I have tried using other ways to display my posts to make it easier to use your plugin but I really do have to do it this way. I can get your plugin to work but just not with wp_list_categories. Any help would be greatly appreciated. Thanks again, Jamie.

Like others, I had the need for using different image sizes with the plugin, so I have made some modifications to your original code to store the attachment id (as is done with post thumbnails) instead.

This then allows you to use inbuilt WordPress functions to get the image at the required size.

I couldn’t use the whole code you put above as most of it was already used in the custom code, but I did find the “right” place to put the img src tag… and it’s showing placeholder images but not the real images.

The images ARE loaded, however, when I look at the Categories listing in the dashboard.

Thank you so much for the plugin and your help!
Heather at CraftLit podcast

I am using wordpress 3.8. The code for “If looping for categories:” works fine but the other codes are not working. Is there any compatibility issue with 3.8 (may be by usage of get_terms, get_the_category, get_the_terms in later codes)?

I was struggling with wp_list_categories(), i wanted to show child category image with a list of child category names, so this plugin helped me with to set category image for all category and sub category but i was unable to show image in the front end. I solved this by editing the file category-template.php in wp-includes which is a core file and engine to wp_list_categories.

Hey there! I know this is kinda off topic but I was wondering if you knew where I could get
a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one?
Thanks a lot!

Hi, and thanks for this great plugin!
But, I have one question…how to use this plugin with wp_list_categories function? I’m using this function to list categories hierarchically. I want insert image inside the ( li ) tag, before link (not in link).
My idea is in category page display only subcategories of current categry and it’s subcategories in the same ( li ) tag (hierarchically)…that’s why I need the wp_list_categories function.
But I dont know how to customize wp_list_categories output, to insert in ( li ) tags a image.
I hope someone will be able to help me or at least give an indication of which direction to dig.

I have a quick question though, is it possible to have the actual image that is uploaded have a URL attached to it? Like, if I click on that image that is being put on the page on the front end, can it have a link included with using the plugin?

Any help how I can center the banner (image ) in the body area of a page with side bar?
Now the image is center all over the total width of the page, I just to display in center the body page ignoring the width of the side bar.

I wanted to have different pictures like small headers in my category title section on each page. So i used Categories for Pages to add your code with a small adjustment <img src="term_id); ?>" /> So that each page has his own picture. I really liked that my idea worked out. Im not much of a programmer though each day im getting better more and more.

Hello Zahlan. My name is Hardeep. From last two times when i updated the plugin in my site. The image icons and image paths are stopped to show in Category Quick Edit Mode. After a long time check i found that you are using
” $(“a.editinline”).live(“click”, function(){ ”
Now i changed it to
$(“#the-list”).on(“click”, “a.editinline”, function(){
and it is working well now. Please correct this in your code so i could use your plugin next updates without any problem. Please check.

If anyone us interested, here is a simple way for adding a conditional statement for this plugin, so if there is an image uploaded show the thumbnail if not show nothing at all, that also uses your own custom thumbnail sizes:

I have created a custom post type of “productcategory” and would like to display the parent categories. Once you click on these you can then see the sub categories.
Here’s the code that I’ve got so far, which shows ALL of the categories http://pastebin.com/bpnFWCbE
I’ve tried a few combinations, including this: http://pastebin.com/gLvtgiQr but I haven’t figured it out yet.
Can anyone help me change this to only show parent categories?
Many thanks!!

One thing that goes in complete favor of corporate apartments is that there are no hidden charges.
Serviced apartments Sydney offer a home like environment.
Chennai serviced apartments deliver outstanding amenities to the
guests thus they are treated with special care and concern.
You may start wondering, where to go and whom to consult for small enquiries.

Obviously, it is not that simple to operate a small company because a tremendous amount
of work is needed. The biggest advantages of outsourcing bookkeeping services for businesses is that they don’t have to worry
about hiring trained and efficient accountants and further create
an in-house bookkeeping department. If your Micro Small Business Australia is ever audited
by the ATO you will need to produce these Tax
Invoices to verify the GST Credits you have claimed back in your BAS Statements.

Double-entry bookkeeping requires recording of each transaction twice using debits and
credits which serves as a type of error protection system.

During that time, the idea of Nintendo is very far-fetched because no one ever thought that games can be played using
gestures of the players. Fix one of the most common problems with your Playstation PS3:.
Since 1990, EA (FIFA) and Konami (PES) have been battling for the front seat in football games.

The EPA, the US Public Health Service, and the American Dental Association (ADA), waived all testing requirements, and encouraged cities to add the radioactive concentrate into America’s
drinking water as an “improved” form of fluoride.
Now Avon is one of the largest companies in the industry with a turnover of more than $8 billion and upwards of 5 million distributors across the world.
The best part is Avon representatives can make a good amount of money.

Hi there, just became alert to your blog through Google, and
found that it’s really informative. I’m gonna watch out for
brussels. I will be grateful if you continue this in future.
A lot of people will be benefited from your writing.
Cheers!

Buying home is a very big investment, one of the most important and
expensive purchases you are ever likely to make. When your house is properly sealed and insulated it will remain cooler in side.
Purchasing a conservatory can provide you with so many opportunities.

Hi Muhammed thanks very much for your great plugin.I’m using your plugin on all my themes but I want to as you if its possible to add a post per page number to give pagination to cateories.Do you have any Idea or tutorial link for this? Thanks again

Im in need of some help. I am trying to use this for looping with taxonomies and everthing is working. I’m sure this is going to be easy for you guys but I can’t get my head around it. All I want to do is print the title of each taxonomy along with the link and the feature image. I just can’t seem to figure out how to do this. If you look at the code below you should get an idea of what I am trying to do.

I was having problems implementing this on the tag.php file of the twenty twelve theme. For some reason the plugin wasn’t recognizing the tag ID, so I had to force it in. I was successfully able to implement it using this code:

Hi Zahlan – I could use some help with customizing your template code to work with a specific template loop.

I have a Custom Post Type and Custom Taxonomy registered for it. The taxonomy is hierarchical but only so that it appears and is used/checked as a ‘category’ not as a Tag, but there are only ‘parent’ level categories – no child categories. Each custom post has a (custom) category checked, and each custom category has an image assigned to it.

However the template page where I want to display the appropriate category image next to each Post is using a custom query that I cannot modify (it’s provided by a plugin and the query is in the plugin’s functions somewhere) and using the “foreach” just is not working. The query is done behind the scenes, but the template uses the “while have posts” loop.

If I put the “foreach” statement above the “while”, it displays the same category image for each post (the image assigned to the first category ID) and if I put the “foreach” statement below the “while” then it displays an image next to each post that is NOT the appropriate assigned image for the category of the post, interestingly it displays the images in order of their ID number (so for the first post in the list it displays the image assigned to the first category ID, even though that is not the category ID of the post, for the second post it displays the category image assigned to the second category ID, again even though that is not the category of the Post….and so on).

This plugin is so useful but my problem is that when I add any category details its work fine. But when I edit any category again it seems “Invalid taxonomy” massage in wordpress 4.1.1 please fix this problem.

I’ve been surfing on-line greater than three hours
lately, yet I by no means found any fascinating article like yours.
It is beautiful value sufficient for me. In my view, if all site owners and bloggers made excellent content as
you probably did, the net can be a lot more useful than ever
before.

Countless folks keep inquiring just how to be able to hack Instagram account.
After some time you need to enter the new password of
the account and press for the hit key to change password.
As far as making money is concerned, this system has 2
parts.

Thanks for the marvelous posting! I quite enjoyed reading
it, you can be a great author.I will remember to bookmark your
blog and will eventually come back sometime soon. I want to encourage you to ultimately continue your great posts, have
a nice morning!

Hello authors .
I have this code in the file tag.php :
<img src="term_id ); ?>” />name; ?>
It seems that images and links have appeared twice in post_tag . The two images will appear if in an article containing two tags .
It sounds confusing , sorry but if somehow it appears only once for each card ? Please help .

I’m using my wordpress db for a mobile application, there I need the category image. So I’m using your plugin. I know how to fetch the image in wordpress front end (website). But here the requirement is different. I need to fetch the image of the particular category from the db for writing API for the mobile application. So could you please let me know how the category and category image is connected in the DB? Its very very urgent.

You is not guessing when you are trying to find quick results.
Though, pills or fad diets that curb food cravings help in losing weight to a degree, but a majority of physicians warn that these weight-loss ways are unhealthy strategies to shedding pounds.
We want to reveal to teens and have them understand the great things about a healthier lifestyle normally and different habits to stay fit.

It makes even the most common of events look like a surreal moment.
Therefore the right ingredients can make a big difference to the way
your wedding photographs appear at last. Detailed Oriented-A wedding photographer
needs to focus on tiny details so that you cannot miss to capture the important moments of the wedding.

Hi I am using your plugin and its pretty cool i just want to show subcategories but when i use your loop its giving me all categories with thumbnail but i want parent category just have his child and thumbnail any help would be really appreciate thanks please anyone can help

I have a question! Im trying to make my categories have images on my origami site. But I don’t get how it works really. I know how to set images to the different categories, but could someone please explain what is up with the code snippets? Do I have to paste them somewhere and in that case where!?

And this: “use the following code in category or taxonomy template,put it in any tag :”

I cant find a category or taxonomy template ;S (ive gone to check at Apparance > Editor. But I cant find anywhere I should paste that code). And do I have to change the code? A guide for beginners would be great! Or if someone could please helpe me! that would be MUCH appreciated! 🙂

Hi, I believe this is a feature request as I can’t get it to work otherwise.

On the next release, could you insert the following 5 lines of code between lines 180 & 181? Then if the current page isn’t a straight-forward category or taxonomy archive it will instead work with the categories associated with that page. It’d be particularly useful when themeing pages depending on their category.

Hi,
I have main category and sub categories. So I want to display sub category images under main category. If I browse to main category page, I want to display sub category images in that page.. I tried your taxonomy wise example. But it’s not working for me. If there are any example for displaying images using term_id?

Hello,
I’ve tried everything I know and every combination and pasting ”
on the tag.php file doesn’t display the featured image that particular tag.

The foreach solution only lists tags and its images, which is not what I’m trying to accomplish. What I’m trying to do is to upload an image to a post_tag (e.g., website.com/tag/car) and display only the image upload to the tag “car” when someone visits the website.com/tag/car link.

Thanks for a really useful plugin, it works great once I tried a few things ;).

For others information, if it helps: I set up a custom post function (child_cat_hub) in child functions.php to run this, and then call it from the template. It may not be the best code, but it works. See below for the basics of what I did.

Thanks for a really useful plugin, it works great once I tried a few things ;).

For others information, if it helps: I set up a custom post function (child_cat_hub) in child functions.php to run this, and then call it from the template. It may not be the best code, but it works. See below for the basics of what I did.

[code]
function child_cat_hub() {
//this function calls the url generated by Taxonomy images plugin!
//assign the course child categories you wish to display, using ID as in below
foreach (get_categories(‘include=1,2,3,4’) as $cat) :
echo (‘<div class="your-div-class">’);
echo (‘<a href="’);
echo get_category_link($cat->term_id); // this calls the url link to the category archive page
echo (‘">’);
echo $cat->cat_name; //this is the category name which prints out.
if (function_exists(‘z_taxonomy_image_url’)); // this checks if there is an image url to call
echo (‘<img src="’);
echo z_taxonomy_image_url($cat->term_id, ‘wp-add-image-size-name-here); //this calls the image url, and the WP add_image_size name if you add it like this
echo (‘" />’);
echo(‘</a>’);
echo (‘</div>’);
endforeach;
} //end of child_cat_hub

[/code]

Remember you need to assign images to the categories otherwise this won’t work!

Thanks for this really useful plugin, it works great.
I’d like to ask You if is possible retrives Post count inside the Category loop. This is my code and I’d like to show how many posts are contained in each category. Thank You for the answer.

Not all my categories are showing, not sure why. These are only the categories shown on my menu. I tried adding more categories to the menu , but that did not do anything. where do i find the taxonomy for all my categories.

Hi! I installed the plug in for Category Image. It’s allowing me to assign a picture to the category and update it; but is not showing in the web page. I’ve been reading to se if I can work it but I’m still having the same problem. When I downloaded the plug in, it said that is compatible with my template from wordpress.
Any recommendation will be welcome…
Thanks

Is there any documentation of how to get a single post to show its parent category image? Everything else has been straight forward but I can’t work out how to do this and it seems like an obvious thing.

It’s me again. I had read and read over and over again the instructions, but my Category Image does not show in the website. I installed the Category Plugin from WP. I’m not sure if I have to insert in the category or taxonomy template this: or if the installation and activation is all I need. After saying that:

1) If installation and activation is all I need- why does my pictures are not showing in the Category? I can assign a picture, but one is assign and save when I got to the webpage is not there?

2) If after the installation and activation I need to insert the code mention above- how do I get to the category template and where should be inserted?

When I add the Category Image Plugin it said that is compatible with my WordPress Template which is KaciMuih.

I really want to have a different header in my category page. Any help will be great…
Thanks

:/ i was using category images for a long time, i was out for the weekend and went i came back the images were not showing, the others things work right the slug and the name but the images not showing at all give me an error 500, what can be happening?

I use Toolset and am trying to allow users to select the name of a custom taxonomy in a dropdown, but display the icon on the page. I have 8 options and 3 icons (more than one type share a single icon). The NAME is used for searches and post creation, but I want icon to show instead. I have tried using Toolsets CONDITIONAL OUTPUT but could not seem to get that to work, so I was looking for another option. I uploaded icons to taxonomy and have tried inserting code in Content Template, functions.php, single.php, View, but am unable to get it to display. My brain has been fried long ago on this project, so specific guidance would be most helpful!

But I really have no flipping clue. I have already downloaded the plugin, please guide me (Baby steps!) on what to do now. I Saw the little hand drawn picture icon, and used that to upload a category image, but I understand that isn’t all. Please assist! Thank you!

there are several WP core functions for categories like
get_cat_ID();
get_categories();
$cat_obj = $wp_query->get_queried_object();
$wp_query->query_vars[‘cat’];

depends if you are on a category page or on a single page or/and in a loop…
best to check the output with var_dump(…) and then see which values in the object/array matches.
from there you can work backwards, checking the current category ID -> check of there is an image (!empty….) and retrieve the category slug from matching the ID with one of the WP cat functions
same with the question above: check the current cat ID and is this as the reference to exclude the image

BUG:
I guess there is a bug using the ‘thumbnail’ url. When having same images for different categories it does not deliver the 150×150.jpg image (for example if 150×150 is defined for WP standard thumbnail) Instead it just shows the url to the standard image.

I use your plugin to set the background image for the category-list page. Works like a charm.

But I also want to set the category image as background for the “single” detail post, when clicking on “read more” at the category list. But this doen’t work out, as the “” doesn’t produce the link to the category image when used in the “single.php” header.

Is there any support for pulling up ONLY categories with z_taxonomy_image_url?
I attempted to use if (function_exists(‘z_taxonomy_image_url’)), but it pulls up the categories even without the image. I also attempted to use z_taxonomy_image_url($cat->term_id) with a !==0, but it breaks or doesn’t appear to read the code at all.

You really make it seem so easy with your presentation however I find this topic to be actually one thing
which I feel I would never understand. It seems too complex and extremely wide for me.
I’m taking a look forward to your next put up, I’ll attempt to get the hang of it!

Hi there fantastic blog! Does running a blog similar to this
require a large amount of work? I’ve absolutely no expertise in programming
however I had been hoping to start my own blog in the
near future. Anyhow, should you have any ideas or techniques
for new blog owners please share. I know this is off subject however I just needed to ask.

I’m building a website for a magazine and uses a custom taxonomy to categorize all their issues. On one page I want to display all the front pages of their issues. The font pages shall be clickable and lead to a list of all the articles from that specific issue.

I now have two problems:
• When I use your code above to display all the front pages of the issues it even displays the parent categories. I don’t want to do that. Is there a way to hide them from the list?
• I then want to display the issues in chronological order with the latest issue on the top and the oldest at the bottom, but nog WordPress sorts them in alphabetical order. Is there a way to sort the issues differently?

Thank you very much for this useful extension.
I use the Virtue theme, I had to create a child theme to overload and modify the archive.php file by adding your code: <img style = "padding-bottom: 10px;" Src = "”>
If this can be used for other …
Hello from Montpellier France

I’m extremely new to all this but I love the sleek look of having category images on your home screen. I have downloaded and installed the plugin “Categories Images” and I have uploaded images to each category but I’m so stuck on what I need to do next in order to actually make these images appear on my home page.

TJ Group Marketing Corporation UK (UK TOP 20 MARKETING COMPANY)
is announcing the launch of the new website with new services available.
It includes Marketing, SEO, Linkbuilding services, Consulting, Social Media Services and more.

Excellent beat ! I would like to apprentice while
you amend your website, how can i subscribe for a blog site?
The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast
offered bright clear idea

Also, they have ruled the market due to their anatomical constructions of shoes that make the
shoes anti-stress with special shock absorption system.
Media doesn’t really know how to handle it
and this was never more clear when we saw the Vogue Italia
cover for June 2011. The Fashion Industry is totally focused on how people look and larger people do not figure
on mainstream fashion’s radar.

The documentation provided by your plugin is very thorough, thank you! I feel that almost any level developer should be able to pick up on what they need to know to get this working in their environment. In my case, I have multiple images attached to categories/taxonomies, and I used the documentation here to determine how to loop in the secondary image (custom field). Thank you very much!

I’m trying to change the images for each of my categories, but now when I go to “Categories Images” under Settings, all I’m seeing is “Please select the taxonomies you want to exclude it from Categories Images plugin”. I can no longer see the option to upload new images. What’s going on?