Created
June 25, 2012 18:00
-
-
Save itspluxstahre/2990236 to your computer and use it in GitHub Desktop.
Snabbt exempel på att regga kategorier på flera posttyper
This file contains 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
add_action('init', 'add_categories_to_things'); | |
function add_categories_to_things() { | |
register_taxonomy_for_object_type('category', 'my_custom_post_type_alfa'); | |
register_taxonomy_for_object_type('category', 'my_custom_post_type_delta'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment