clujpark slider taxonomy
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Sliders', 'Taxonomy General Name', 'clujpark' ),
'singular_name' => _x( 'Slider', 'Taxonomy Singular Name', 'clujpark' ),
'menu_name' => __( 'Sliders', 'clujpark' ),
'all_items' => __( 'All Sliders', 'clujpark' ),
'parent_item' => __( 'Parent Slider', 'clujpark' ),
'parent_item_colon' => __( 'Parent Slider:', 'clujpark' ),
'new_item_name' => __( 'New SliderName', 'clujpark' ),
'add_new_item' => __( 'Add New Slider', 'clujpark' ),
'edit_item' => __( 'Edit Slider', 'clujpark' ),
'update_item' => __( 'Update Slider', 'clujpark' ),
'view_item' => __( 'View Slider', 'clujpark' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'clujpark' ),
'add_or_remove_items' => __( 'Add or remove items', 'clujpark' ),
'choose_from_most_used' => __( 'Choose from the most used', 'clujpark' ),
'popular_items' => __( 'Popular items', 'clujpark' ),
'search_items' => __( 'Search items', 'clujpark' ),
'not_found' => __( 'No items found', 'clujpark' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'slider', array( 'slide' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_taxonomy', 0 );