You will notice the following features after adding this code snippet to your website.
- Adds a Categories field to the WordPress Page editor.
- Adds a Categories column to the WordPress Pages list.
function add_categories_to_pages()
{
register_taxonomy_for_object_type("category", "page");
}
add_action("init", "add_categories_to_pages");