Nieuws – van Duijnen
Van Duijnen – nieuws
if ( ! function_exists('nieuws') ) { // Register Custom Post Type function nieuws() { $labels = array( 'name' => 'nieuws', 'singular_name' => 'nieuws', 'menu_name' => 'Nieuws', 'parent_item_colon' => 'Hoofd nieuws', 'all_items' => 'Alle nieuws items', 'view_item' => 'Bekijk nieuws', 'add_new_item' => 'Voeg nieuwsitem toe', 'add_new' => 'Voeg nieuwsitem toe', 'edit_item' => 'Wijzig nieuwsitem', 'update_item' => 'Update nieuwsitem', 'search_items' => 'Zoek nieuwsitem', 'not_found' => 'Nieuwsitem niet gevonden', 'not_found_in_trash' => 'Niet gevonden in prullenbak', ); $args = array( 'label' => 'nieuws', 'description' => 'Nieuws items', '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, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-post', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'nieuws', $args ); } // Hook into the 'init' action add_action( 'init', 'nieuws', 0 ); }