I'm getting to grips with the walker at the moment, but i need some assistance in getting my desired effect. My walker function looks like: class ik_walker extends Walker_Nav_Menu{ //start of the sub menu wrap function start_lvl(&$output, $depth) { $output .= '<nav class="site-navigation" role="navigation"> <ul>'; } //end of the sub menu wrap function end_lvl(&$output, $depth) { $output .= ' </ul>
![Custom walker nav - Add sequential number as class](https://cdn-ak-scissors.b.st-hatena.com/image/square/05831f91b1a02e1c516b45e4b53bba60347fc177/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fwordpress%2FImg%2Fapple-touch-icon%402.png%3Fv%3D85d7f2242440)