MVA Activiteit
// Register Custom Post Type
function mva_activiteit() {
$labels = array(
'name' => _x( 'Activiteiten', 'Post Type General Name', 'mva' ),
'singular_name' => _x( 'Activiteit', 'Post Type Singular Name', 'mva' ),
'menu_name' => __( 'Activiteiten', 'mva' ),
'name_admin_bar' => __( 'Activiteit', 'mva' ),
'archives' => __( 'Item Archives', 'mva' ),
'parent_item_colon' => __( 'Parent Item:', 'mva' ),
'all_items' => __( 'All Items', 'mva' ),
'add_new_item' => __( 'Add New Item', 'mva' ),
'add_new' => __( 'Toevoegen', 'mva' ),
'new_item' => __( 'Nieuw', 'mva' ),
'edit_item' => __( 'Bewerk', 'mva' ),
'update_item' => __( 'Update', 'mva' ),
'view_item' => __( 'Bekijk', 'mva' ),
'search_items' => __( 'Zoek', 'mva' ),
'not_found' => __( 'Niet gevonden', 'mva' ),
'not_found_in_trash' => __( 'Niet gevonden in prullenbak', 'mva' ),
'featured_image' => __( 'Uitgelichte afbeelding', 'mva' ),
'set_featured_image' => __( 'Wijs afbeelding toe', 'mva' ),
'remove_featured_image' => __( 'Verwijder afbeelding', 'mva' ),
'use_featured_image' => __( 'Gebruik al uitgelichte afbeelding', 'mva' ),
'insert_into_item' => __( 'Insert into item', 'mva' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'mva' ),
'items_list' => __( 'Items list', 'mva' ),
'items_list_navigation' => __( 'Items list navigation', 'mva' ),
'filter_items_list' => __( 'Filter items list', 'mva' ),
);
$args = array(
'label' => __( 'Activiteit', 'mva' ),
'description' => __( 'Activiteit Melkvee Agenda', 'mva' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'trackbacks', 'revisions', ),
'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' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'mva_activiteit', $args );
}
add_action( 'init', 'mva_activiteit', 0 );