• How do I get the following to autopopulate the menu vs. require me to manually add pages to the menu in the Appearance admin area?

    <?php wp_nav_menu('menu=testmenu&menu_class=child-navs&container=&container_class=&menu_id='); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi wyclef!

    Have you thought about using wp_list_pages() as a fallback?
    https://developer.www.ads-software.com/reference/functions/wp_list_pages/

    Unless you mean something different?

    Thread Starter wyclef

    (@wyclef)

    No, I’m pretty sure I want wp_nav_menu. Currently I’m using it and it’s working fine as long as I use the manually populate it using the menu thing in the appearance admin area. I’m just looking to auto populate it so if I add a page I don’t have to manually add it to the menu.

    If I check Automatically add new top-level pages to this menu it doesn’t seem to work.

    Am I supposed to have something in functions more than add_theme_support( 'menus' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto Populate Menu’ is closed to new replies.