Requerimos de Plugin Code Snippet para poder implantar el código que nos dará la función de categorías en paginas de wordpress,
E completamente funcional, ligero y efectivo en casos de requerir categorias para constructores web y de más herramientas wp.
/***** Creates "Page Categories" Taxonomy for pages *****/
function create_Page_Categories_taxonomy() {
$labels = array(
'name' => _x( 'Page Categories', 'taxonomy general name' ),
'singular_name' => _x( 'Page Category', 'taxonomy singular name' ),
'search_items' => __( 'Search Page Categories' ),
'all_items' => __( 'All Page Categories' ),
'parent_item' => __( 'Parent Page Category' ),
'parent_item_colon' => __( 'Parent Page Category:' ),
'edit_item' => __( 'Edit Page Category' ),
'update_item' => __( 'Update Page Category' ),
'add_new_item' => __( 'Add New Page Category' ),
'new_item_name' => __( 'New Page Categories Name' ),
'menu_name' => __( 'Page Categories' ),
);
register_taxonomy('page_categories',array('page'), array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'page_categories' ),
'show_in_rest' => true,
));
}
add_action( 'init', 'create_Page_Categories_taxonomy', 0