is there any way to setup wordpress so that when I create a CPT and then have a menu item (preferably the archive page) that will automatically create a dropdown of all the actual posts and the links will be to the CPT single pages?
so for instance if i had stores as my CPT the menu would look like this:
Stores (to archive page)
location 1(to location 1 single)
location 2(to location 2 single)
location 3(to location 3 single)
and then if i add a new store location a new link would be created in this menu that would go to location 4(to location single)
my custom post type is currently created by a custom plugin so i would be interested in adding the code to there if possible. I saw another question that said i may have to use wp_nav_menu but i'm not sure where to start with that.