projects taxonomy
// Register Custom Taxonomy
function projects_taxonomy() {
$labels = array(
'name' => _x( 'Projects', 'Taxonomy General Name', 'walkercsl' ),
'singular_name' => _x( 'Projects', 'Taxonomy Singular Name', 'walkercsl' ),
'menu_name' => __( 'Projects', 'walkercsl' ),
'all_items' => __( 'All Projects', 'walkercsl' ),
'parent_item' => __( 'Parent Project', 'walkercsl' ),
'parent_item_colon' => __( 'Parent Project:', 'walkercsl' ),
'new_item_name' => __( 'New Project Name', 'walkercsl' ),
'add_new_item' => __( 'Add New Project', 'walkercsl' ),
'edit_item' => __( 'Edit Project', 'walkercsl' ),
'update_item' => __( 'Update Project', 'walkercsl' ),
'view_item' => __( 'View Project', 'walkercsl' ),
'separate_items_with_commas' => __( 'Separate projects with commas', 'walkercsl' ),
'add_or_remove_items' => __( 'Add or remove projects', 'walkercsl' ),
'choose_from_most_used' => __( 'Choose from the most used', 'walkercsl' ),
'popular_items' => __( 'Popular Projects', 'walkercsl' ),
'search_items' => __( 'Search Projects', 'walkercsl' ),
'not_found' => __( 'Not Found', 'walkercsl' ),
'items_list' => __( 'Projects list', 'walkercsl' ),
'items_list_navigation' => __( 'Projects list navigation', 'walkercsl' ),
);
$rewrite = array(
'slug' => 'projects',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
);
register_taxonomy( 'projects', array( 'projects' ), $args );
}
add_action( 'init', 'projects_taxonomy', 0 );