Custom Taxonomy Locations Page
-
I created a custom taxonomy for locations by adding the following to functions.php:
add_action( 'init', 'build_taxonomies', 0 ); function build_taxonomies() { register_taxonomy( 'supplier', 'location', array( 'hierarchical' => true, 'label' => 'Supplier', 'query_var' => true, 'rewrite' => false ) ); }
The taxonomy shows up on locations and I’ve created some terms and assigned them to some locations. I made the file taxonomy-supplier-glass.php in my theme directory and just added the code from category.php. I went to ‘permalinks’ in wp-admin to refresh the cache. What url do I need to go to in order to see a list of locations with this custom taxonomy/term? I’ve tried mysite/locations/supplier/glass/ , mysite/supplier/glass/ , etc.. and have no luck- “couldn’t find what you are looking for” in each case. What am I missing here?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Taxonomy Locations Page’ is closed to new replies.