It looks like your issue is the name of your taxonomy has a capital letter, the first argument of register_taxonomy is to be all lowercase, no spaces as the documentation for the register_taxonomy function mentions here.
Change your code to the following and your taxonomy-gallery.php template will work correctly.
register_taxonomy( 'gallery', array( 'photo' ), array( 'hierarchical' => true, 'label' => 'Galleries', 'singular_label' => 'Gallery', 'rewrite' => true ) );
In the first bit of code you posted, you will also want to change the reference to the gallery taxonomy to be lowercase as well. Labels are fine with any case, but not actual names of taxonomies.
Related Posts:
- How to get all taxonomies of a post type?
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- How do I append multiple taxonomies to the URL?
- Custom taxonomy not showing up when adding a new custom post type
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- Custom Taxonomy Template Post List with Sort Order
- wp_insert_term doesn’t work with custom post type’s taxonomy
- How to list all categories and tags in a page?
- Get the ‘slug’ of a custom taxonomy
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- How to get the parent’s taxonomy?
- Include custom post type in “all posts”
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- wp_insert_post custom taxonomy
- Taxonomy-{taxnonomy}.php is not working
- Display taxonomy term only if there’s a value
- Get list of terms of current taxonomy archive for another taxonomy
- Get all taxonomies for all post types
- Show Post Count of a Category
- Menu Multiple Taxonomies
- How to make a custom taxonomy selectable in post publish area?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- get_terms showing all categories instead of the ones assigned to a specific post
- Custom page template for category taxonomy
- Query Multiple Taxominies Across Multiple Post type’s
- How do I get array of types associated with a taxonomy?
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Categories of custom taxonomy don’t show any posts
- Custom Taxonomy back-end customizations
- Taxonomy custom post type URL
- Is it possible to have dedicated page for parent/child taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Display a grid of taxonomy terms at root taxonomy page
- limit value taxonomy based on previous taxonomy value wordpress
- How to conditionally redirect to the post from a taxonomy page?
- Suggested Post and Taxonomy structure
- How to make custom taxonomy into drop down select in a custom metabox
- How do I share categories across multiple post types?
- Multiple tag cloud filtering
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy in URL
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- How to Set Taxonomy Object Description?
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Variable not working in WP_Query
- Hide meta box for everything BUT a certain custom post type
- How can I create an automatic drop down menu with my tags?
- Alphabetically sort a taxonomy.php template by post title
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Get taxonomy singular name instead of taxonomy slug inside $taxonomy query
- Show Taxonomies with admin area for custom post type?
- Custom taxonomy template list not working (404)
- Use the custom post type archive for taxonomies?
- Taxonomy template page not working
- Changing CPT slug and taxonomy already registered in parent theme
- Copy/Move selected taxonomy terms to another taxonomy for posts
- Get posts by category name
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Query Custom Post Type by Taxonomy
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Define multiple prefixes for custom post type
- How to order taxonomy terms by most recent post?
- Custom taxonomy returns 404 even with saving permalinks
- Create custom post type categories
- Taxonomies are not showing in the category dropdown
- Change custom post taxonomy values from front-end
- Set a Default CPT taxonomy by taxonomy id
- List posts that have the current url taxonomy
- List all posts associated under custom taxonomy
- How to transfer categories (default) to custom taxonomy?
- Custom Taxonomy – fields
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Pages of my taxonomy terms are showing all posts
- Custom post type category link + add to menu
- If custom taxonomy exist on post?
- Single taxonomy for different custom post types
- How to get all posts assigned to a taxonomy term only?
- Filter Term By Parent Term – Custom Post Type
- Best approach to allow front-end display of posts’ reviewers?
- WordPress add taxonomies/terms list as a menu in archive page
- Custom Post Type and Taxonomies, creating the corresponding template file and loop the data
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- List all posts from custom post type by taxonomy
- Displaying taxonomy icon outside archive page
- Archive templates based on taxonomies
- Show taxonomies from specific CPT
- insert a taxonomy for a custom post type
- See the process of creating a taxonomy and tell me where I made a mistake
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Show custom category archive as front page and remove taxonomy slug from urls