While I don’t like taking credit for someone else’s answer, I also don’t like leaving a question without answer when the answer does exist and it’s already been given.
I hope Milo won’t mind if I copy the answer from his comment.
The register_taxonomy calls should be hooked to init.
Related Posts:
- How to add custom taxonomy slug in CPT permalink?
- WordPress: Displaying all the post tags from within a specific taxonomy’s term
- Relationship between custom post type and page/single templates
- Display a query with multiple post types and same relationship on a single page
- Display all categories (with link) of custom post type – WordPress
- How can I get values from a custom post type depending on where I click on my SVG map?
- Displaying custom meta box value in a custom post page
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- WordPress different custom tag being displayed in on tag list
- How to enable REST API on custom post type without Gutenberg?
- Can I associate a custom post type with another custom post type?
- Get category name of current post (CPT UI)
- How to sort custom sortable column by custom table value
- I want to show image from custom field image on my custom page template
- How to disable page create for custom post type, but allow a page with the post types slug to be created?
- How to use multiple custom post types to archive as front page?
- How to make multiple custom taxonomies sit under custom post type slug?
- Limit a search box by CPT + taxonomies, in only one page
- WordPress taxonomy and terms question
- Load style and script for custom post type metabox
- Custom CPT – Programmatically create categories to assign CPT when a new one is created
- Why do I get a 404 error on my custom post type archive pagination?
- How do I exclude the current post from the upcoming post query
- Save_Post change Custom Post Type Post title to post id number
- Custom Filtering date with newsletter
- Ajax infinite scroll random order shows duplicate posts on custom post type
- Custom post type removing /page/2/ from URL when trying to access it
- Same Custom Post Type Slug and Custom Taxonomy Slug, with hierarchial unique permalink structure
- fetch from an external api call and display results in page
- WordPress CPT & Custom Taxonomy with the SAME Permalink Structure
- Remove slug and custom post type name from URL
- Hot to show custom post type taxonomies on archive page
- Integrate a Custom Post Type with Learndash Plugin
- child category under correct parent
- Remove slug of multiple custom post types with and without hierarchical
- Redirect WordPress page to the latest created post by the logged in author/user
- create custom post type and populate custom fields using php
- Want to add custom post type for facebook feed
- Custom Post Types in WordPress Dashboard List Rows But Data is Blank
- Options of select field in a custom divi module ignore sorting
- How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
- How to get the post title inside a custom block in a loop? block.js
- Set custom post type to load custom block pattern by default
- Post returns 404 after changing the permalink using post_type_link
- Check if current page is the Blog Page
- How to stop form resubmission on page refresh
- How to get the ID of an item in an audio playlist?
- Add footer.php to WordPress child theme
- Passing a shortcode attribute to a sub-function
- how to display active, upcoming and past event with featured listing with pagination
- JS completely stopped loading but Files are found
- Insert post without actions/hooks
- Restrict WordPress File Type Uploads by User Type
- How Can I Call Up The Author’s Name on a Post
- How to pass arguments to add_action() or retrieve return value of called function?
- Get WordPress Category ID from a URL string
- How to remove the cufon script from Dzonia Lite theme [closed]
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Ajax request returns ‘Array’. How to output the actual results?
- subdirectory index.php is not working
- Can you use a WordPress front-end only and have rest of pages as pure PHP
- Security: blocking direct access of php files
- Woocommerce change prices for a certain country [closed]
- Adding PHP in the menu
- WordPress Environment: Dynamic Page using shortcode – how to change the page name for sharing
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- How can I spin up a new website for a registered user automatically?
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- Remove item in Checkout
- How to show every second user different types of banners?
- Woocommerce – get_items() returns empty array
- echo esc_url( get_permalink($post->ID) + complete the ID’s url
- How to add a rewrite endpoint to unattached media?
- Accessing an API with jQuery and AJAX
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- How to remove Login from in my account page
- Configure WordPress to Use Responsive Image Rendering
- Creating multiple tables with Plugin
- How can i create a function tag in my plugin
- Why the responseText containing those two arrow signs at the beginning
- Meta Box clears saved field content
- Woocommerce remove menu item on myaccount dashboard
- Display related post content and custom field content
- woocommerce plugin bugs
- can’t see categories in appearance-menu-categories
- Getting most popular posts based on Facebook comments count
- WordPress get_post_meta issue
- Woocommerce Price Text
- Best way to define a database with product codes and back-end support?
- Display pages from specific page template
- If Elseif Query
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- How can I print out a single stylesheet or javascript link?
- wordpress featured image
- Generating a number based on post ID
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Show the terms of the hierarchical taxonomy
- Why does WordPress not make use of gettext directly?
- i18n in WordPress Theme