I am trying to add "The Events Calendar" custom taxonomy to a custom post type i created with wp-types. But I can't see it in custom taxonomies panel in order to assign it to my CPT... I've tried adding it from the CPT panel but it doesn't show on the wordpress editor. Any ideas?
Thank you.
Dear bassem,
How do you setup the custom taxonomy "The Events Calendar"?
Is it created with Types plugin? if it is created with other plugins, please post a downloadable URL for it, I need test and debug it in my localhost, thanks
Hello, thank you for your reply.
Basically I need to use an existing custom taxonomy created by this plugin: hidden link
This plugin have a custom taxonomy called "event category", I need to use it on another CPT created by wp-types.
Thanks for the details, I can duplicate same problem in my localhost, in your case, you can try with wordpress function register_taxonomy_for_object_type, for example, add below codes into your theme/functions.php:
add_action( 'init', 'tribe_events_cat_cpts_func', 11);
function tribe_events_cat_cpts_func(){
register_taxonomy_for_object_type( 'tribe_events_cat', 'my-cpt-1' );
}
Please replace my-cpt-1 with the slug of your custom post type.
More help:
register_taxonomy_for_object_type
Add a registered Taxonomy to a registered Post Type.
Thanks, it works very well ! 🙂