Support » Fixing WordPress » The different out put of wp_list_categories and wp_nav_menu=

  • Hello again!

    Imagine viewing a single page that is in custom taxonomy called places.

    On the page navigation I list the menu with wp_list_categoris
    <?php wp_list_categories('taxonomy=places&title_li=')); ?>

    It outputs
    <li class="cat-item cat-item-22">

    Get the menu with wp_nav_menu
    ´<?php wp_nav_menu( array(‘menu’ => ‘Venues Menu’, ‘link_after’ => ‘<span></span>’ )); ?>´

    It outputs
    ´<li id=”menu-item-31″ class=”menu-item menu-item-type-taxonomy current-post-ancestor current-menu-parent current-post-parent menu-item-31″>´

    wp_nav_menu adds all sorts of cool classes that help to style current state of the menu.

    Why don’t I use it then? Cause if user adds a new “place” then it has to be added to the menu also.

    Is there a way to spit out all the venues like it is possible with using the wp_list_categories? Or any other solution?

    All help is welcome and highly appreciated 🙂

  • The topic ‘The different out put of wp_list_categories and wp_nav_menu=’ is closed to new replies.