Skip to content

Instantly share code, notes, and snippets.

@jo-snips
Created March 29, 2013 14:41
Show Gist options
  • Select an option

  • Save jo-snips/5271256 to your computer and use it in GitHub Desktop.

Select an option

Save jo-snips/5271256 to your computer and use it in GitHub Desktop.
Register Taxonomies For Post Types
<?php
/*-----------------------------------------------------------------------------------*/
/* Register Taxes for Post Types
/*-----------------------------------------------------------------------------------*/
function run_init() {
register_taxonomy_for_object_type('category', 'tribe_events');
register_taxonomy_for_object_type('post_tag', 'tribe_events');
register_taxonomy_for_object_type('tribe_events_cat', 'post');
}
add_action('init','run_init');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment