• Hi,

    I’m stuck at this for some time now. Basically, I’m looking to get the WordPress page IDs (as opposed to HTML attribute) from my custom menu that I use walker for:

    wp_nav_menu(array('menu' => 'Header Menu', 'menu_class' => 'nav navbar-nav', 'walker' => new CSS_Menu_Maker_Walker() ));

    How can I fetch the IDs of pages that the menu links to (and just top level, excluding dropdown).

    I need this so that I can access post meta and pass it to JS. I successfully passed array of variables to JS, but can’t find a way to get the IDs.

    Any help is appreciated.

    Cheers

  • The topic ‘Nav page ids’ is closed to new replies.