Created
December 20, 2017 15:25
-
-
Save matthijs166/2a7aee42c64c2d0636a6189bbcda64a7 to your computer and use it in GitHub Desktop.
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
//enable catogries and tags for pages | |
function myplugin_settings() { | |
// Add tag metabox to page | |
register_taxonomy_for_object_type('post_tag', 'page'); | |
// Add category metabox to page | |
register_taxonomy_for_object_type('category', 'page'); | |
} | |
// Add to the admin_init hook of your theme functions.php file | |
add_action( 'init', 'myplugin_settings' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment