Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.