publicatie
// Register Custom Post Type
function post_type_publicaties() {
$labels = array(
'name' => 'Publicaties',
'singular_name' => 'Publicatie',
'menu_name' => 'Publicaties',
'name_admin_bar' => 'Publicaties',
'archives' => 'Publicatie archief',
'attributes' => 'Publicatie attributen',
'parent_item_colon' => 'Hoofd items',
'all_items' => 'Alle publicaties',
'add_new_item' => 'Voeg nieuwe publicatie toe',
'add_new' => 'voeg nieuw toe',
'new_item' => 'Nieuwe publicatie',
'edit_item' => 'Bewerk publicatie',
'update_item' => 'Pas publicatie aan',
'view_item' => 'Bekijk publicatie',
'view_items' => 'Bekijk publicaties',
'search_items' => 'Zoek publicatie',
'not_found' => 'Geen publicatie gevonden',
'not_found_in_trash' => 'Geen publicatie gevonden in de vuilbak',
'featured_image' => 'Uitgelichte afbeelding',
'set_featured_image' => 'Stel uitgelichte afbeelding in',
'remove_featured_image' => 'Verwijder uitgelichte afbeelding',
'use_featured_image' => 'Gebruik als uitgelichte afbeelding',
'insert_into_item' => 'Voeg toe in publicatie',
'uploaded_to_this_item' => 'Upload naar deze publicatie',
'items_list' => 'Publicatie lijst',
'items_list_navigation' => 'Navigatie lijst publicatie',
'filter_items_list' => 'Filter publicatie lijst',
);
$args = array(
'label' => 'Publicatie',
'description' => 'Plaats hier alle publicaties',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-book',
'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' => 'post',
);
register_post_type( 'publicatie', $args );
}
add_action( 'init', 'post_type_publicaties', 0 );