register_activation_hook
is one-time only activation hook. It can be used for database structure creation, as example, that needs to fire only on plugin activation trigger.
In order to set a custom taxonomy you need a hook that will fire not just once, but per every WordPress load. Such as init
.
Use add_action( 'init', 'YOUR_CALLBACK' );
to achieve that
Related Posts:
- How to Add Custom Taxonomy To Woocommerce Plugin
- register_taxonomy with multiple object type and update_count_callback
- Adding a custom post type taxonomy template in plugin
- Insert custom taxonomy into category query
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- How to completely disable a taxonomy archive on the frontend?
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- Maintaining WP_Query Relation Among CPT, Custom Taxonomy, Permalinks- CPT UI
- Remove POST_TYPE from custom post type permalink
- Custom Taxonomy and tax_query Issue?
- How to Build a Movie Library in WordPress 3.x
- How to register custom post types in a plugin?
- Display custom taxonomy as dropdown list
- How to append element after thumbnail
- Best practice for adding posts in bulk
- How to have the right design for a custom post type without accessing themes
- Best action hook to create custom post and assign taxonomy terms to it on plugin activation?
- Custom Taxonomy Not Showing in Menu
- Custom Post Type | Fatal Error on register_post_type()
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- how to add extra meta box or textarea into custom post types
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- get_object_taxonomies() returns empty array for custom post type
- custom post type not showing in menu
- Custom posts don’t work
- How to add a custom taxonomy to show up in a custom post type menu?
- How can I make a custom post type sticky?
- Addition of custom option panel crashes Media Library & Admin Area
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Metabox not show in categories custom post type cmb2
- What is the best practice for displaying my plugin content in themes?
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- How to change permalink to include custom post type
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Plugin fatal error
- Custom fields for custom post type
- Custom Post Archive is not working
- Custom post type’s extra fields – how to handle?
- Main query not querying any posts in custom taxonomy template
- ACF in wordpress
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- post_parent in custom post type
- Dynamically insert code to custom post type loop
- Show current custom taxonomy
- Unable to format dates to put in event calendar
- Getting only one post per category
- Custom post type in Custom widget – $listItem
- Validate Custom Post Type fields
- Types plugin custom post add_action hooks
- Multiple archives to display parent and subcategories content
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- how can i show a google map in custom post type
- Most viewed post of custom post type
- Writing a custom Glossary plugin
- Custom post type page with parameter
- Custom post type category link redirecting to 404 page
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Need to edit author permissions | custom taxonomy
- How to show Custom Post Types under Taxonomy in a new WordPress page template?
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- Error 404 change permalink term custom term taxonomy
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Changing CPT permalink
- I have a random letter appearing before my content. Where to start looking for the cause?
- Cannot view Custom Post Type no matter what I try
- Is it possible to arrange Custom Post Types from CPTUI into a Folder?
- Restrict Custom Post Type to One Item
- Show Post columns to specific users on condition
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Filter Custom Post Type Posts by Taxonomy
- How to Use A Custom Post Type as Taxonomy for Another Custom Post Type
- % encoded URL giving 404 error in WordPress
- CPT UI: Connect a custom post type to a custom post type
- Which File Populating CPTs in Slug URL
- Custom post type that lets users create a set of posts?
- Not Able to List CPT Based on Taxonomy Term
- Create Inclusions and exclusions
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Can’t save custom post type fields
- Show custom taxonomy not in submenu
- How to Fix WordPress 500 Internal server error due to custom post type
- get_post_types doesn’t work in plugin
- Plugin Error on activating
- Associate custom categories to different user IDs
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Render custom taxonomy query as single template
- Custom Taxonomy Showing in WP Menu
- Get term_id for each instance of custom taxonomy
- How to internationalize the sub menu name “categories” in Custom post type?
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- How to Create Short Code Using Custom Post type
- Custom Post Type urls not working
- How to filter custom post data with AJAX?