WordPress category colors
- Started
- Last post
- 5 Responses
- besler
I'm developing a WordPress blog and want there to be a corresponding box that links to the specific category used with each post. Each category would have its own color.
Is there an easy way to do this? I've read that you can use different cat-ids to signify the colors, but what about putting the boxes for the categories under each post?
- acescence0
you'll have to crack open your template and modify it a bit. most templates use the function the_category to print out a simple list of categories. replace it with this function instead...
http://codex.wordpress.org/Funct…
check out the show category images example, you could mod that to style each of your categories individually via css...
- besler0
acescence, that did just the trick. One more question though, if I wanted to show multiple categories next to each other (not below, how they currently are), how would I go about doing this? Something tells me I would need to "skip" the first pulled category.
- acescence0
not sure i understand what you mean, can you post a link?
- besler0
I'm going to shoot you a quick e-mail if that's alright.