Docs

Menus

has_menu_items

Checks if there are any menu items (suprisingly). Returns true if there are, false if not.

Checks if the menu item is active. Returns true if there are, false if not.

Checks if the menu item is active. Returns true if there are, false if not.

Returns the current menu item's ID

Counts through every visible menu item, one, by one. Returns true when there is more posts to be listed or false when we are at the end. Should be used like this:

<?php while(menu_items()): ?>
    <!-- Loop through the menu items. -->
<?php endwhile; ?>

Returns the current menu item's name. This should be used instead of menu_title() to display.

Returns the current menu item's title. This should be used instead of menu_title() as a title=”” attribute.

Returns the current menu item's URL