WordPress.org

Ready to get started?Download WordPress

Forums

how I get last element in menu? (1 post)

  1. nekro20
    Member
    Posted 2 years ago #

    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;"';
    ........

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags