Ivantus @ get_depth()


Hi, great tutorial! I’ve got one question though. I’d like to show sidebar1 for depth1, sidebar2 for depth2 and so on. Any idea how to achieve this?
At this point I’m using for all top level categories:
if is_category(toplevelcat1,toplevelcat2,toplevelcat3…) {
INCLUDE sidebar1
} elseif is_category(2ndlevelcat1,2ndlevelcat2,2ndlevelcat3…) {
INCLUDE sidebar2
} elseif is_category(3rdlevelcat1,3rdlevelcat2,3rdlevelcat3…) {
INCLUDE sidebar3
This is pretty complicated when you have 1000 categories. :)