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
- Sending the reset password link programatically
- Need help setting default setting value for radio button in theme customizer
- WordPress Shortcode and Dynamic CSS
- Current post’s author name in the author meta tag
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- How to get a list of term names of the custom post type im currently on in single.php
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Replacing a specific menu item
- Duplicate domain database to local – How?
- How to upload imagick resource to media in wordpress
- Data fetch and delete by ajax request
- Find variables available at a given hook
- Passing data between two hooks in separate HTML requests
- Can I view my own wordpress php source code on my hosted web server?
- Creating a new page and automatically associating it with a template in WordPress
- Send PDF link in email based on radio button selection
- How to access function from outside of a class within this class in WP plugin?
- Add relevant tag to search results
- Custom post type permalink returns bad url
- Replace word in “the_content” only for index.php
- Cannot display or echo alt text on featured image
- Using loop pagination on single.php
- How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called ‘accountVerified’?
- Javascript file is not working on single.php wordpress [closed]
- How to send Ajax request from my plugin in admin dashboard?
- How to display pictures from database?
- Output Video Download Link in template
- Display category name only once inside loop
- AJAX success response is not working but it’s saving my changes
- Best practice for show data to one specific user?
- Two menus show up
- How to create pagination for users list using custom array?
- WordPress member notification
- Create page with custom php script and fetched data
- WordPress shortcode returns the data before
- One account with multiple logins
- How can get all users by current user meta?
- Sort posts in a specific way
- How to hide post in WordPress
- Only show posts from the last trailing 12 months
- `update_post_meta` not working anymore
- Custom pagination (Previous / Next)
- foreach loop inside the loop creating duplicates in output
- Getting the slug into a variable, how to echo that variable
- The user can only see their own profile
- Post meta select input, if statement
- what does $options = get_option(‘test_theme’); do?
- Custom Post Type Causes Error: Warning: call_user_func_array()
- Set document title through shortcode plugin
- Filter taxonomy by CPT
- WordPress url By country code?
- How to change basename url for wp-admin?
- Prevent header and footer from loading on specific pages with template or plugin
- WordPress all php BUT index.php downloads instead of loads
- Don’t update modified post date when user add a product review or comment?
- Mysterious letters appearing at the top of a few pages
- Trouble matching strings (titles) using wp_query
- Current WordPress Page Title as Search Parameter into A Tag
- Limit the number of characters/words in an excerpt for a related posts section
- Yoast Breadcrumbs Inject Multiple Levels
- How to give custom roles the capability to edit one Menu instead of every Menu
- Unzip_file causing Media file upload error
- Tell wordpress to show a single page instead of an archive page
- Escaping a Single Quote in str_replace for Nav Function
- widget: input the px value from user and use it as inline style in widget function
- Setting pages for posts
- Problems with plugin that fetches data from database with ajax
- Customise Author Page?
- How to create categories out of a list of words?
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- Difference between php memory limit and wp memory limit?
- Edit Error Page style
- How to sort wordpress posts by selecting a year from a drop down?
- WooCommerce Checkout Cart [closed]