• I am creating a platform for car dealerships and want the menu to auto-populate based on what makes are in the inventory post type currently. For example, if there is a “Ford” under the custom field “Make” in custom post type “Inventory” and display “Ford” under “Inventory” as a drop-down menu item. If the ford sold and is deleted from inventory and there are no other fords then remove ford from inventory drop-down menu

    • This topic was modified 2 years, 7 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not aware of any plugins like that, but I’m not Knower of All Plugins. This could be custom coded, though a search for existing solutions is always recommended before embarking on a coding project.

    A query for DISTINCT makes will return the information needed to construct a menu list. The “wp_nav_menu” filter could be used to add to or replace the normal menu created through the back end. The menu items that are auto-generated from query results should mimic the standard WP nav menu elements so the items will remain properly styled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic menu and submenu from custom post type?’ is closed to new replies.