I’ve tried your code WordPress 3.5.1 installation, and it works just fine.
Check the WordPress version you are using and the changelog to find out if something that can interfere with your CPT and taxonomy is different in your version than in 3.5.1
Related Posts:
- How to get all taxonomies of a post type?
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- Mixing custom post type and taxonomy rewrite structures?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Efficient Taxonomy Intersection
- Display current taxonomy term when inside custom post type
- limit selection of custom taxonomies to one?
- $wp_query->queried_object->ID throws warning: Undefined property
- Custom Taxonomy Template Post List with Sort Order
- Extend walker class with custom post types [closed]
- Custom permalinks – post type – hierarchical taxonomy’s
- Post type archive page not working
- Taxonomy posts on Archive page
- Help with hierarchical custom taxonomies and permalinks…almost there
- Taxonomy list. Order by a specific custom post type count
- Rewrite CPT slug with two taxonomy slug instead of one
- Archive or taxonomy pages not working for custom post type
- Custom Taxonomy returns no posts
- Display taxonomy term only if there’s a value
- How to get only one category of custom post type?
- Create separate template for shared custom taxonomy with shared terms
- Custom content type meta_box_cb does not run
- Custom/separate categories for custom post type
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- Custom Taxonomy breaking pages permalinks
- Custom Post Type Pagination & duplicate posts
- Custom post types and permalinks
- 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
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Normal pages as children of my Custom Post Type
- Custom post type and taxonomy slug issue
- Custom template won’t load for a custom post type (custom permalinks used)
- Remove url rewrites for registered taxonomies
- Received nothing after executing AJAX post function
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Genesis filterable portfolio isotope [closed]
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Post count by month of taxonmy term
- Query taxonomy of taxonomy of custom post type
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Pretty URL for custom search for custom post type
- How to conditionally redirect to the post from a taxonomy page?
- First custom field value (out of several) displayed twice after query
- Custom while loop for hierarchical display of a taxonomy
- How do I share categories across multiple post types?
- Migrating a taxonomy’s tags to the native category
- Grouping of CPTs and taxonomies into menu groups in admin
- set permalink for CPT
- Check if post has specific tag_ID in custom post type
- custom post type vs. conditionally displaying meta boxes for specific terms?
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- filter by custom taxonomy using ajax
- Display custom tags for custom post listing page
- How to display custom taxonomy term meta on custom post type
- Page listing all categories for CPT
- List child categories from parent category on custom taxonomy page
- Grab all Custom Posts by multiple taxonomies and terms
- What should I learn to develop event management in wordpress? [closed]
- Custom Post Types and Complex Content Hierarchy
- If custom taxonomy else conditional [closed]
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Custom post type rewrite url structure with taxonomy and sub taxonomy
- How to display custom taxonomy term specific post?
- Get taxonomy name used in a current post
- Custom Post Type with Category Separate
- Custom Taxonomy Archive generates 404
- Related posts by taxonomies does not work , what could be the reason?
- Display first post of a term in taxonomy template
- How to transfer categories (default) to custom taxonomy?
- Support for author does not show author column in post table in dashboard
- Create Inclusions and exclusions
- Associate custom CPT with another CPT’s taxonomy and rewrite permalinks
- Force WordPress to only match URL in category
- Same permalink structure for all post types?
- Hierarchical taxonomy in permalink structure
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Rewrite for custom type and custom taxonomy
- How to create TEMPLATES for TAXONOMIES? What I have to change in this code?
- Custom Post Status & Taxonomies
- WordPress custom post type
- How to have working breadcrumbs with several taxonomies associated with a custom post type
- Show Custom Post Type taxonomy term that matches custom field
- Sort custom post type items by taxonomy description
- How to Display Custom Taxonomies in an Un-ordered HTML List
- link posts to custom post type
- how do I create a breadcrumb to work with multiple custom taxonomies
- Most appropriate way to display CPT’s by children terms of custom taxonomies while retaining desired permalink structure?
- See the process of creating a taxonomy and tell me where I made a mistake
- Navigation won’t update to show full path to single post
- Custom Post Type urls not working
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Show a wordpress custom post condtionally using a category term