DJ: Records
// Register Custom Post Type
function dj_records_posttype() {
$labels = array(
'name' => _x( 'DJ Records', 'Post Type General Name', 'dj' ),
'singular_name' => _x( 'DJ Record', 'Post Type Singular Name', 'dj' ),
'menu_name' => __( 'DJ Records', 'dj' ),
'name_admin_bar' => __( 'DJ Records', 'dj' ),
'parent_item_colon' => __( 'Übergeordneter Record:', 'dj' ),
'all_items' => __( 'Alle Records', 'dj' ),
'add_new_item' => __( 'Neuen Record hinzufügen', 'dj' ),
'add_new' => __( 'Neuer Record', 'dj' ),
'new_item' => __( 'Neuer Record', 'dj' ),
'edit_item' => __( 'Record bearbeiten', 'dj' ),
'update_item' => __( 'Record ändern', 'dj' ),
'view_item' => __( 'Record ansehen', 'dj' ),
'search_items' => __( 'Record suchen', 'dj' ),
'not_found' => __( 'Nicht gefunden', 'dj' ),
'not_found_in_trash' => __( 'Nicht im Papierkorb gefunden', 'dj' ),
);
$args = array(
'label' => __( 'dj_records', 'dj' ),
'description' => __( 'DJ Records', 'dj' ),
'labels' => $labels,
'supports' => array( 'title', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-playlist-video',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'dj_records', $args );
}
// Hook into the 'init' action
add_action( 'init', 'dj_records_posttype', 0 );