'Projecten', 'singular_name' => 'Project', 'menu_name' => 'Projecten', 'name_admin_bar' => 'Projecten', 'archives' => 'Project Archief', 'attributes' => 'Project Attributes', 'parent_item_colon' => 'Parent Project:', 'all_items' => 'All Projecten', 'add_new_item' => 'Add New Project', 'add_new' => 'Add New', 'new_item' => 'New Project', 'edit_item' => 'Edit Project', 'update_item' => 'Update Project', 'view_item' => 'View Project', 'view_items' => 'View Projecten', 'search_items' => 'Search Project', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Project hoofd afbeelding', 'set_featured_image' => 'Set Project hoofd afbeelding', 'remove_featured_image' => 'Remove Project hoofd afbeelding', 'use_featured_image' => 'Use as Project hoofd afbeelding', 'insert_into_item' => 'Insert into Project', 'uploaded_to_this_item' => 'Uploaded to this Project', 'items_list' => 'Projecten list', 'items_list_navigation' => 'Projecten list navigation', 'filter_items_list' => 'Filter Projecten list', ); $rewrite = array( 'slug' => 'project', 'with_front' => false, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'Project', 'description' => 'Hier maak je projecten aan', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes' ), 'taxonomies' => array( 'project_cat', ' project_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' => 'projecten', 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'projecten_post', $args ); // Ongedierte $labels = array( 'name' => 'Ongedierte', 'singular_name' => 'Ongedierte', 'menu_name' => 'Ongedierte index', 'name_admin_bar' => 'Ongedierte', 'archives' => 'Ongedierte Archives', 'parent_item_colon' => 'Parent Ongedierte:', 'all_items' => 'All Ongedierte', 'add_new_item' => 'Add New Ongedierte', 'add_new' => 'Add New', 'new_item' => 'New Ongedierte', 'edit_item' => 'Edit Ongedierte', 'update_item' => 'Update Ongedierte', 'view_item' => 'View Ongedierte', 'search_items' => 'Search Ongedierte', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into Ongedierte', 'uploaded_to_this_item' => 'Uploaded to this Ongedierte', 'items_list' => 'Ongediertes list', 'items_list_navigation' => 'Ongediertes list navigation', 'filter_items_list' => 'Filter Ongediertes list', ); $rewrite = array( 'slug' => 'ongedierte', 'with_front' => false, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'Ongedierte', 'description' => 'Alle ongedierte op een rij', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'page-attributes', 'revisions'), 'taxonomies' => array( 'pesttax', 'ongedierte_cat' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'ongedierte', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'rewrite' => $rewrite ); register_post_type( 'ongedierte', $args ); } add_action( 'init', 'custom_post_type', 0 ); // Register Custom Taxonomy function custom_taxonomy() { // ongedierte_cat $labels = array( 'name' => 'Categorieën', 'singular_name' => 'Categorie', 'menu_name' => 'Categorieën', 'all_items' => 'All Categorieën', 'parent_item' => 'Parent Categorie', 'parent_item_colon' => 'Parent Categorie:', 'new_item_name' => 'New Categorie Name', 'add_new_item' => 'Add New Categorie', 'edit_item' => 'Edit Categorie', 'update_item' => 'Update Categorie', 'view_item' => 'View Categorie', 'separate_items_with_commas' => 'Separate Categorieën with commas', 'add_or_remove_items' => 'Add or remove Categorieën', 'choose_from_most_used' => 'Choose from the most used', 'popular_items' => 'Popular Categorieën', 'search_items' => 'Search Categorieën', 'not_found' => 'Not Found', 'no_terms' => 'No Categorieën', 'items_list' => 'Categorieën list', 'items_list_navigation' => 'Categorieën list navigation', ); $rewrite = array( 'slug' => 'ongedierte-categorie', 'with_front' => false, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite ); register_taxonomy( 'ongedierte_cat', array( 'ongedierte' ), $args ); //ongedierte Tag $labelsTax = array( 'name' => 'ongedierte tag', 'singular_name' => 'ongedierte tag', 'menu_name' => 'ongedierte tags', 'all_items' => 'All ongedierte tags', 'parent_item' => 'Parent ongedierte tag', 'parent_item_colon' => 'Parent ongedierte tag:', 'new_item_name' => 'New ongedierte tag', 'add_new_item' => 'Add New ongedierte tag', 'edit_item' => 'Edit ongedierte tag', 'update_item' => 'Update ongedierte tag', 'view_item' => 'View ongedierte tag', 'separate_items_with_commas' => 'Separate ongedierte tags with commas', 'add_or_remove_items' => 'Add or remove ongedierte tag', 'choose_from_most_used' => 'Choose from the most used', 'popular_items' => 'Popular ongedierte tags', 'search_items' => 'Search ongedierte tags', 'not_found' => 'Not Found', 'no_terms' => 'No ongedierte tags', 'items_list' => 'ongedierte tags list', 'items_list_navigation' => 'ongedierte tags list navigation', ); $rewrite = array( 'slug' => 'ongedierte-tag', 'with_front' => false, 'hierarchical' => false, ); $argsTax = array( 'labels' => $labelsTax, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'exclude_from_search' => true, 'publicly_queryable' => false, 'rewrite' => $rewrite ); register_taxonomy( 'pesttax', array( 'ongedierte' ), $argsTax ); //Projecten categorie $labels = array( 'name' => 'Project Categorieën', 'singular_name' => 'Project Categorie', 'menu_name' => 'Categorieën', 'all_items' => 'All Categorieën', 'parent_item' => 'Parent Categorie', 'parent_item_colon' => 'Parent Categorie:', 'new_item_name' => 'New Categorie Name', 'add_new_item' => 'Add New Categorie', 'edit_item' => 'Edit Categorie', 'update_item' => 'Update Categorie', 'view_item' => 'View Categorie', 'separate_items_with_commas' => 'Separate Categorieën with commas', 'add_or_remove_items' => 'Add or remove Categorieën', 'choose_from_most_used' => 'Choose from the most used', 'popular_items' => 'Popular Categorieën', 'search_items' => 'Search Categorieën', 'not_found' => 'Not Found', 'no_terms' => 'No Categorieën', 'items_list' => 'Categorieën list', 'items_list_navigation' => 'Categorieën list navigation', ); $rewrite = array( 'slug' => 'projecten', 'with_front' => false, 'hierarchical' => false, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite ); register_taxonomy( 'project_cat', array( 'projecten_post' ), $args ); } add_action( 'init', 'custom_taxonomy', 0 ); ?>