How can I create this menu with wp_nav_menu()?

This can achieve with a nav walker. I used this. I am stepping according to the mentioned. Put navwalker (wp-bootstrap-navwalker.php) in your theme root Call to the navwalker in functions.php file. require_once(‘wp-bootstrap-navwalker.php’); Create your menu in WordPress Backend (Appearance -> Menus) In your menu area, according to me in header.php wp_nav_menu( array( ‘menu’ => ‘main_menu’, … Read more

How to Hide/Remove Pages section in Menus (Dashboard)

You can actually hide Pages (and Posts, Custom Links, or Categories) using the Screen Options tab at the top of the WordPress Dashboard while on the Menus editor screen. Just open that Screen Options tab and uncheck the box corresponding to Pages. If you want to make sure that option never gets checked again, you … Read more

Menu location switcher – example code fails

So, the code in the documentation assumes that the menu you’re trying to get is set as the primary menu. If the menu you’re trying to get isn’t the one set as primaryin Apperance -> Menus, this error will show. I suggest you try to work with their name or slug instead.

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