Discussion for the recipe: https://wp-dev-recipes.serversideup.net/themes/enable-categories-for-wordpress-pages.