• I was just about to write that it’s not possible to use wp_list_cats() twice on one page to create two differing menus… but it looks like it can be done if you put all your categories under parents and do one menu per parent while using child_of. That is, you can do something like this…

      <?php wp_list_cats(‘sort_column=name&child_of=20&exclude=1&all=”Show All”‘); ?>
      <?php wp_list_cats(‘sort_column=name&child_of=19&exclude=1&all=”Show All”‘); ?>

    …but for some reason, if you try to do two different menus without using child_of, the second menu will be identical to the first even if it has different arguments. That is, you can’t get the above effect by using exclude and having a different set of exclude IDs for each instance of wp_list_cats… that doesn’t work.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘two category menus on one page’ is closed to new replies.