Support » Fixing WordPress » how I get last element in menu?

  • How I get the last element of the menu?

    Get the first element:

    class mainMenuWalker extends Walker_Nav_Menu {
    	function start_el(&$output, $item, $depth, $args) {
    		if ($item->menu_order == 1 && $depth == 0) $flag = ' style="border-left:none;"';
    ........

  • The topic ‘how I get last element in menu?’ is closed to new replies.