I've made a menu in Wordpress backend with 3 levels depth. (4 main tabs with 2 sub level items)
I would like to know how I can get the number of tabs created automaticly and add this number to a class on the ul (i.e: .item-4)
Any ideas? I'm already using a custom Walker.