I am not sure if it is clear from the title what I want to achieve here so let me try to clarify this.
I wanna make use of Wordpress's menu system and need to adjust it to my needs, which means that I need it to go from here:
<ul>
<li>item1</li>
<li>item2</li>
etc.
</ul>
to here:
<ul>
<li><div>1(dynamic-content)</div>item1</li>
<li><div>2(dynamic-content)</div>item2</li>
etc.
</ul>
What would be the best way to achieve this?? Just need some quick directions to go there and do it myself without losing too much time finding appropriate solution.
Is it the wp_nav_menu()
or wp_get_nav_menu_items()
that I should be researching? Short sample would be appreciated as well if it's not too much to ask.
And another thing.. I would appreciate tip on how to generate number inside that inserted div
that represents menu item's order apperance: 1,2,3,etc. Is there a way to pick up this from Wordpress's core?
Thank you so much. Any help appreciated.