Ok, so after another hours of digging through the codex, I found a solution. Hope this helps anyone else who is runs into the same issue. I had to use the register_taxonomy_for_object_type function. And then I used the init hook. Here is the function that worked for me.
function add_cpt_to_project_tax(){
register_taxonomy_for_object_type('project_category', 'external_project');
register_taxonomy_for_object_type('project_tag', 'external_project');
}
add_action('init','add_cpt_to_project_tax');
Related Posts:
- get_query_var() not working in pre_get_posts
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Don’t know how to show custom taxonomies from a custom post_type
- Limit number of custom posts per taxonomy
- Changing CPT slug and taxonomy already registered in parent theme
- How do I add new post formats to twenty fourteen theme?
- Store a value in global scope after init hook is fired
- Changing CPT permalink
- ACF Pro simple Business Directory – Requesting assistance with created Templates and associated Functions.php Coding
- Custom Post Type Taxonomy Filters
- Query with no terms uses index.php template instead of archive.php
- Custom Taxonomy Doesn’t Show Up
- Categories sorting
- Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Show posts from two or more custom taxonomy terms
- Customize my custom taxonomy table in Admin panel
- Allow user to set custom order to a list of custom taxonomies?
- get_category_parents for custom post type taxonomy
- Custom-Posttype & Custom Taxonomy WP_Query
- Custom loop with multiple taxonomy queries
- How to use custom taxonomies to reference complex relationships?
- Disable block with taxonomies at post page
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Displaying custom taxonomy in the admin list of a custom post type
- Get parse_query filter to return slug instead of id
- Tax query not producing any results
- Custom post type and taxonomy – show related posts
- Rewrite post type slug only for child theme
- search also in taxonomy, tags and custom fields
- Create template for taxonomy results limited by Custom Post Type
- wp_list_categories() – current-cat class also inside posts?
- Showing the custom taxonomy parent term and child term of a post
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Query Custom posts of same taxonomy as the post itself
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Template for custom post with custom taxonomy
- Best way to save horoscope data
- Which post does a taxonomy term belongs to?
- How can I set taxonomy programmatically
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Custom post type multiple loop by taxonomy term
- getting all values of a custom taxonomy if there is no post
- custom types taxonomy hide_empty
- Help need making decision. Ads rotating site on wordpress
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- Listing tags from a custom post type
- List custom taxonomy specific to one custom post type
- Is $object_type truly required with register_taxonomy()?
- Custom Taxonomy back-end customizations
- Show a Category X’s custom post type on Category X archive page?
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Get Taxonomy Term Title by it’s URL
- Add custom taxonomy to post content body?
- custom taxonamy and post type
- Taxonomy custom post type URL
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- Custom post type url with category
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- How do I move/order posts with a tag to the end?
- How do I amend the have_posts function to include custom posts?
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Add custom image size for custom post type or taxonomy
- Get taxonomy values based on wp_query results
- Display post as term id
- Ajax Custom Post Filter is not filtering
- Need Output Custom Taxonomy from Custom Post Type
- Display all taxonomy terms, add class if term applies to current post
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- Custom Post Type – No Results Found
- Return the latest post from a custom Taxonomy and 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?
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Custom taxonomy rewrite give pagination 404
- How to duplicate entire custom post type
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Use Custom Post Type archive page for the taxonomies term archive page
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Is it possible to have dedicated page for parent/child taxonomy?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Can a Custom Taxonomy be named “category” like normal Posts?
- How to use terms from the same custom taxonomy in different roles in a custom post type?
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- How do I display the taxonomy term alongside the post type post title?
- Display custom post type category, while in a CPT category, then the posts beneath
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Display Custom Toxonomy In WordPress and theme Widgets category selection dropdown list
- Hide parent categories when clicked, and show it’s childs
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Hide post navigation if current post is in a category with only one post