If I go to wp-admin/edit-tags.php?taxonomy=location then I correctly see a list of terms.
If I loop through:
get_terms("category");
Then I correctly see several terms for the taxonomy of category. Have I created my custom taxonomy incorrectly for the same function not to output any results for my taxonomy?
get_terms("location");
register_taxonomy('location', 'post',
array(
'labels' => array( 'name' => _x( 'Locations',
'taxonomy general name' ),
'singular_name' => _x( 'Location', 'taxonomy singular name' ),
'search_items' => __( 'Search Locations' ),
'all_items' => __( 'All Locations' ),
'parent_item' => __( 'Parent Location' ),
'parent_item_colon' => __( 'Parent Location:' ),
'edit_item' => __( 'Edit Location' ),
'update_item' => __( 'Update Location' ),
'add_new_item' => __( 'Add New Location' ),
'new_item_name' => __( 'New Location Name' ),
'menu_name' => __( 'Locations' ),
),
'rewrite' => array( 'slug' => 'locations',
'with_front' => false,
'hierarchical' => true
),
)
);