dimanche 4 octobre 2015

Get number of siblings for a wp_nav_menu element

I am using a custom Walker function to customise the display of a menu in Wordpress.

To go one step forward I would like to have a different HTML markup for submenus with more than X elements.

Is there a way I can check the number of elements for a given item within the start_el function of the Walker Walker_Nav_Menu?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire