How to get the navigation menu items? [closed]

To get a full control of the menu items you can create a custom Walker class, which extends the default Walker_Nav_Menu class. Override and customize the class methods as needed. Finally pass an instance of the custom walker to wp_nav_menu( array $args = array() ) with walker key in the $args array.

If you only need to add some extra markup before or after the links or link texts, then consider using the before, after, link_before and link_after arguments for wp_nav_menu().

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)