I've been searching Google for this to no avail.
I'm working on a restaurant site, and I have a custom post type for dishes, like so:
$args = array( 'labels'=> $labels, 'public'=> true, 'publicly_queryable'=>true, 'show_ui'=>true, 'show_in_nav_menus'=>true, 'query_var'=>'dish', 'rewrite'=>true, 'capability_type'=>'post', 'hierarchicial'=>false, 'menu_position'=>5, 'supports'=>array( 'title', 'editor', 'thumbnail', 'excerpt', 'custom-fields', 'revisions' ) ); register_post_type('dish', $args);
An example of one of the custom taxonomies I want to use is this:
register_taxonomy('Main Ingredient', array('dish'), array( 'hierarchical' => true, 'label' => 'Main Ingredient', 'singular_label' => 'Main Ingredient', 'query_var'=>true, 'rewrite' => true) );
The custom taxonomies are working fine in the admin, and I can go to myurl.com/main-ingredient/pork and see a list of all dishes with pork in them.
What I'm wanting to do is be able to hit myurl.com/main-ingredient and get a list of all the various main-ingredient values.
I found this reference, which is exactly what I'm trying to do: Custom taxonomy listing page when no term set (all terms)
But the solution is not working for me - I'm still getting a 404 when going to myurl.com/main-ingredient
Any suggestions on how best to do this?