title: Generating wordpress menu from custom taxonomies
body: <p>I've created a custom post type (products) that has some custom taxonomies.  One of which is 'category'.  I would like to have my menu under Products generated automatically with the custom taxonomy 'category' so that on the menu they can click <code>PRODUCTS -&gt; &lt;category&gt;</code> and it will take them to a list of that particular products with that category (I've already got a page that displays a single product, and a page that lists ALL the products).  Note that some <code>category</code> taxonomies will have children and I would like to show that in the menu too.</p>
  
  <p>I'm somewhat new to wordpress and the only way I know how to create the menu is through the wp-admin, but I don't want to go in and create a page/menu for each category and subcategory.</p>
  
  <p>Is what I'm talking about even possible?  Thank you!</p>
  
  <p>Custom Post Type is here:</p>
  
  <pre><code>add_action( 'init', 'create_product_post_type' );
  
  function create_product_post_type() 
  {
      $labels = array(
          'name' =&gt; _x('Products', 'post type general name'),
          'singular_name' =&gt; _x('Product', 'post type singular name'),
          'add_new' =&gt; _x('Add New', 'product'),
          'add_new_item' =&gt; __('Add New Product'),
          'edit_item' =&gt; __('Edit Product'),
          'new_item' =&gt; __('New Product'),
          'view_item' =&gt; __('View Product'),
          'search_item' =&gt; __('Search Products'),
          'not_found' =&gt; __('No products found'),
          'not_found_in_trash' =&gt; __('No products found in Trash'),
          'parent_item_colon' =&gt; '',
          'menu_name' =&gt; 'Products'           
          );
  
      $args = array(
          'label' =&gt; __('Products'),
          'labels' =&gt; $labels,
          'public' =&gt; true,
          'can_export' =&gt; true,
          'show_ui' =&gt; true,
          '_builtin' =&gt; false,
          'capability_type' =&gt; 'post',
          'menu_icon' =&gt; get_bloginfo('template_url').'/functions/images/product.png',
          'hierarchical' =&gt; false,
          'rewrite' =&gt; array( "slug" =&gt; "product" ),
          'supports' =&gt; array('title'), //MAYBE add thumbnail later!
          'show_in_nav_menus' =&gt; true
  
          );
  
          register_post_type( 'product', $args);  
  }
  </code></pre>
  
  <p>And here is the taxonomy:</p>
  
  <pre><code>function create_productcategory_taxonomy() {
      $labels = array(
          'name' =&gt; _x( 'Categories', 'taxonomy general name' ),
          'singular_name' =&gt;_x( 'Category', 'taxonomy singular name' ),
          'search_items' =&gt;  __( 'Search Categories' ),
          'popular_items' =&gt; __( 'Popular Categories' ),
          'all_items' =&gt; __( 'All Categories' ),
          'parent_item' =&gt; null,
          'parent_item_colon' =&gt; null,
          'edit_item' =&gt; __( 'Edit Product Category' ),
          'update_item' =&gt; __( 'Update Product Category' ),
          'add_new_item' =&gt; __( 'Add New Product Category' ),
          'new_item_name' =&gt; __( 'New Product Category' ),
          'separate_items_with_commas' =&gt; __( 'Separate categories with commas' ),
          'add_or_remove_items' =&gt; __( 'Add or remove product categories' ),
          'choose_from_most_used' =&gt; __( 'Choose from the most used categories' )
          );
  
      register_taxonomy('productcategory', 'product', array (
          'label' =&gt; __('Product Category'),
          'labels' =&gt; $labels,
          'hierarchical' =&gt; true,
          'show_ui' =&gt; true,
          'query_var' =&gt; true,
          'rewrite' =&gt; array( 'slug' =&gt; 'product-category'),
          )); 
  }
  </code></pre>