Skip to content

Instantly share code, notes, and snippets.

@BronsonQuick
Created March 4, 2012 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BronsonQuick/1971091 to your computer and use it in GitHub Desktop.
Save BronsonQuick/1971091 to your computer and use it in GitHub Desktop.
Add Categories to Pages in WordPress
<?php /*
* In some weird occasions Pages need to have Categories like Posts in WordPress.
*/
add_action( 'init', 'sennza_add_page_cats' );
function sennza_add_page_cats()
{
register_taxonomy_for_object_type( 'category', 'page' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment