'Custom WordPress pages redirect to index.php
I am using bootstrap 5 nav walker, the menu works fine in the wordpress menu tab, and i have couple of custom pages that i want to link to the menu. So adding the links to the menu bar when i test it, the links returns back to the index.php page.
How can i resolve this issue?
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container' => false,
'menu_class' => 'navbar-nav',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="navbar-nav ms-auto mb-2 mb-md-0 %2$s">%3$s</ul>',
'depth' => 2,
'walker' => new bootstrap_5_wp_nav_menu_walker()
));
?> ```
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
