Nieuws post type
// Register Custom Post Type
function nieuws_post_type() {
$labels = array(
'name' => 'Nieuwsartikelen',
'singular_name' => 'Nieuwsartikel',
'menu_name' => 'Nieuws',
'name_admin_bar' => 'Nieuws',
'parent_item_colon' => '',
'all_items' => '',
'add_new_item' => '',
'add_new' => '',
'new_item' => '',
'edit_item' => '',
'update_item' => '',
'view_item' => '',
'search_items' => '',
'not_found' => '',
'not_found_in_trash' => '',
);
$args = array(
'label' => 'nieuws',
'description' => 'Rodi Media Nieuws',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', ),
'taxonomies' => array( 'nieuwscategorieen' ),
'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' => 'post',
);
register_post_type( 'nieuws', $args );
}
// Hook into the 'init' action
add_action( 'init', 'nieuws_post_type', 0 );