Ine Mariën / Involvement
// Register Custom Post Type
function involvement() {
$labels = array(
'name' => _x( 'Involvement', 'Post Type General Name', 'inemarien' ),
'singular_name' => _x( 'Involvement', 'Post Type Singular Name', 'inemarien' ),
'menu_name' => __( 'Involvement', 'inemarien' ),
'parent_item_colon' => __( 'Parent Involvement:', 'inemarien' ),
'all_items' => __( 'All Involvement', 'inemarien' ),
'view_item' => __( 'View Involvement', 'inemarien' ),
'add_new_item' => __( 'Add New Involvement', 'inemarien' ),
'add_new' => __( 'Add New', 'inemarien' ),
'edit_item' => __( 'Edit Involvement', 'inemarien' ),
'update_item' => __( 'Update Involvement', 'inemarien' ),
'search_items' => __( 'Search Involvement', 'inemarien' ),
'not_found' => __( 'Not found', 'inemarien' ),
'not_found_in_trash' => __( 'Not found in Trash', 'inemarien' ),
);
$args = array(
'label' => __( 'involvement', 'inemarien' ),
'description' => __( 'Post Type Description', 'inemarien' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'involvement', $args );
}
// Hook into the 'init' action
add_action( 'init', 'involvement', 0 );