Created
March 29, 2013 14:41
-
-
Save jo-snips/5271256 to your computer and use it in GitHub Desktop.
Register Taxonomies For Post Types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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