I've been editing my category template. I wanted the cat description to have an image, I found a plugin which put a full editor into the description text window, didn't like that idea. Found a hack to not strip out html tags from the text window content, didn't like that much either. So with a little more searching I found some code snips here in the forums and went to work.
Any comments, suggestions on how to make this cleaner or better, more than welcome. Also my last issue with this is that when in sub cat page, the Sub cat image and descript display, but the image also displays in the sub cat list below. view issue here.
What I wanted was a template which pulled an image based on the category name and placed the cat description, plus any sub categories would also have an image and it's description as link title. If there is no image a default would be placed, if there is no default the cat title would be placed. The image size is read from the image so each cat can have a different size image.
Here's the result;
php to be pasted into your category.php file inside your template folder:
[Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as http://wordpress.pastebin.ca. Thanks!]