I'm wanting to add a bootstrap menu to the sidebar that contains parent and child pages for a custom post type 'products'.
I used the bootstrap walker I found here - https://gist.github.com/donchenko/4ac5f1380ae687f11bfd13f379531f60 - that uses
wp_list_pages for the menu links.
It works fine with parent pages, but the child pages are not displaying. It looks like the walker is missing some attributes (ie
aria-labelledby=) and it's not getting the class 'true' for the dropdown and such.
Has anyone successfully created a bootstrap nav walker for
wp_list_pages that includes all the classes and attributes needed to function? I'm using Bootstrap 5. Any help would be appreciated.