Dossiers
// Register Custom Post Type
function Dossiers() {
$labels = array(
'name' => _x( 'Dossiers', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Dossier', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Dossiers', 'text_domain' ),
'name_admin_bar' => __( 'Dossiers', 'text_domain' ),
'parent_item_colon' => __( 'Parent dossier:', 'text_domain' ),
'all_items' => __( 'All dossiers', 'text_domain' ),
'add_new_item' => __( 'Add New Dossier', 'text_domain' ),
'add_new' => __( 'Add New Dossier', 'text_domain' ),
'new_item' => __( 'New Dossier', 'text_domain' ),
'edit_item' => __( 'Edit Dossier', 'text_domain' ),
'update_item' => __( 'Update Dossier', 'text_domain' ),
'view_item' => __( 'View Dossier', 'text_domain' ),
'search_items' => __( 'Search Dossier', 'text_domain' ),
'not_found' => __( 'Not found', 'text_domain' ),
'not_found_in_trash' => __( 'No dossiers found in Trash', 'text_domain' ),
);
$args = array(
'label' => __( 'dossier', 'text_domain' ),
'description' => __( 'Verzameling info rondom onderwerp / thema', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'dossier', $args );
}
// Hook into the 'init' action
add_action( 'init', 'Dossiers', 0 );