Collection
Taxonomy for Photo Collections
// Register Custom Taxonomy function eniyeclement_create_collection_taxonomy() { $labels = array( 'name' => _x( 'Collections', 'Taxonomy General Name', 'eniyeclement' ), 'singular_name' => _x( 'Collection', 'Taxonomy Singular Name', 'eniyeclement' ), 'menu_name' => __( 'Collection', 'eniyeclement' ), 'all_items' => __( 'All Collections', 'eniyeclement' ), 'parent_item' => __( 'Parent Collections', 'eniyeclement' ), 'parent_item_colon' => __( 'Parent Collection:', 'eniyeclement' ), 'new_item_name' => __( 'New Collection Name', 'eniyeclement' ), 'add_new_item' => __( 'Add Collection Item', 'eniyeclement' ), 'edit_item' => __( 'Edit Collection', 'eniyeclement' ), 'update_item' => __( 'Update Collection', 'eniyeclement' ), 'view_item' => __( 'View Collection', 'eniyeclement' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'eniyeclement' ), 'add_or_remove_items' => __( 'Add or remove Collections', 'eniyeclement' ), 'choose_from_most_used' => __( 'Choose from the most used', 'eniyeclement' ), 'popular_items' => __( 'Popular Collections', 'eniyeclement' ), 'search_items' => __( 'Search Collections', 'eniyeclement' ), 'not_found' => __( 'Not Found', 'eniyeclement' ), 'no_terms' => __( 'No items', 'eniyeclement' ), 'items_list' => __( 'Items list', 'eniyeclement' ), 'items_list_navigation' => __( 'Items list navigation', 'eniyeclement' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'collection', array( 'photo' ), $args ); } add_action( 'init', 'eniyeclement_create_collection_taxonomy', 0 );