Created
February 27, 2015 12:21
-
-
Save ville6000/8c4d8bdcda1dff4b2eb0 to your computer and use it in GitHub Desktop.
Add category support to pages
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
function my_theme_init() { | |
register_taxonomy_for_object_type( 'category', 'page' ); | |
} | |
add_action( 'init', 'my_theme_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment