For register taxonomy change:
add_action( 'after_setup_theme', 'custom_tour_taxonomy' );
to:
add_action( 'init', 'custom_tour_taxonomy' );
Check: https://codex.wordpress.org/Function_Reference/register_taxonomy#Basic_Example
Related Posts:
- Taxonomy, Terms, and Template Files
- Exclude a category from WP_Query
- Check if post type has term
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Custom taxonomy not showing up when adding a new custom post type
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Changing the priority of a custom taxonomy’s metabox
- How to list all categories and tags in a page?
- WordPress custom taxonomy URL rewrite on spelling errors
- TV Show database – Best way for structuring it?
- Create an archive page for custom taxonomies
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Many to Many Taxonomies or rewrite rules?
- Query posts by custom post type and custom taxonomy
- Sort the main query in subcategories/terms?
- How to display the rest of categories on Portfolio filterable
- Highlight nav menu terms
- Custom Post Types, Custom Taxonomies and Permalinks ?
- get a list of posts from Custom Taxonomy
- How to query custom post type by term?
- Trying to manage templates on a blog with lots of custom taxonomies
- How to get the first term for the current taxonomy?
- Display Custom Category (taxonomy) Name in Custom Post Type
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom Post Types relationships
- Display Posts in Custom Post Types Timber
- How can i skip same post from taxonomy term?
- Set menu active state for custom posttype and category, given custom taxonomy term
- Getting a PHP Notice when using Pods with WPML [closed]
- Custom post type structure for posts with multiple child posts
- Custom post type multiple loop by taxonomy term
- Extending AZIndex plugin to use custom post types and custom taxonomies
- How to display custom taxonomies with links in filter menu?
- List custom taxonomy specific to one custom post type
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- How to Filter custom post type by taxonomy?
- Hide parent categories when clicked, and show it’s childs
- What’s the WP way to load remaining custom posts?
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Auto Complete Search
- permalink /category/post-name with custom post type and taxonomy
- Displaying Custom Taxonomies From Multiple Custom Post Types
- WordPress subpages to custom post types
- Custom post type Permalinks with hierarchical Taxonomies
- Properly flush rewrite rules on plugin activation
- Can’t use pagination with custom taxonomy
- Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
- Targeting categories in custom fields
- Displaying tags associated with posts in Custom Post Type
- Custom taxonomy page returns 404
- portfolio custom type tags support
- Targeting custom post type via functions.php doesn’t work
- How to define the template for custom posts?
- Custom post type categories gives 404 error
- Query Posts that have Custom Taxonomy
- Custom Taxonomy Terms in Menu lead to which page?
- Multiple archives to display parent and subcategories content
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Custom taxonomy not saving correctly
- Custom taxonomy and post type rewrite rules
- Custom Post Type and Taxonomy Rewrite Error
- Custom Post Type Rewrite Throws Headers Sent Errors
- How can I loop at a Specific Taxonomy from a custom post type?
- Custom taxonomy does not display in custom post loop
- how to retrieve related projects in a post but via a custom taxonomy?
- Return multiples taxonomies with wp_get_object_terms
- How do I Create Single template for custom post type with a custom URL?
- How to add CSS class field in Custom Taxonomy?
- Ajax load more inside custom post type taxonomy
- How can I get the last 5 element of this tax query?
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Remove CPT Slug with 2 taxonomies and 1 post meta
- Create a custom wp_query from a specific custom post type with specific taxonomy
- URL with Hierarchical Taxonomies and same slug for all terms and sub-terms
- Show posts for current taxonomy
- order taxonomy alphabetical
- Custom post type archive page not showing on archive-posttype.php
- Should I make a taxonomy to organize data like this?
- Cannot retrieve Custom Taxonomies (Disappeared)
- Custom Post type and Taxonomy in post URL error
- Display Custom taxonomy, Child terms and posts in a template Under Specific Parent terms
- List all posts from custom post type by taxonomy
- Sort a custom post type loop by a custom taxomomy instead of chronologically
- changing post type in loop query
- Taxonomy and Rewrite Structure
- Pagination for a Custom Taxonomy
- Trying to create hierarchy between 3-4 custom post types
- How to Create Custom Post Type with Multiple Color Options?
- Add custom taxonomies as class names to an archive page of custom post types
- Custom Post Type Base URL
- Only One Post of Custom Post Type Appearing on Template Page
- Limit taxonomy terms added to a custom post type
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Dynamically count the number of custom post types associated to a custom taxonomy