sb_S
Post type 1
if ( ! function_exists('sb_type_school') ) { // Register Custom Post Type function sb_type_school() { $labels = array( 'name' => 'Scholen', 'singular_name' => 'School', 'menu_name' => 'Scholen', 'name_admin_bar' => 'Scholen', 'archives' => 'Scholen overzicht', 'attributes' => 'Attributen', 'parent_item_colon' => 'Bovenliggend:', 'all_items' => 'Alle scholen', 'add_new_item' => 'Voeg nieuwe school toe', 'add_new' => 'Voeg toe', 'new_item' => 'Nieuwe school', 'edit_item' => 'Bewerk school', 'update_item' => 'School bijwerken', 'view_item' => 'Toon school', 'view_items' => 'Toon scholen', 'search_items' => 'Zoek school', 'not_found' => 'Niet gevonden', 'not_found_in_trash' => 'Niet gevonden in de prullenbak', '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 bij school in', 'uploaded_to_this_item' => 'Geüpload naar deze school', 'items_list' => 'Lijst scholen', 'items_list_navigation' => 'Lijstnavigatie scholen', 'filter_items_list' => 'Filter scholenlijst', ); $args = array( 'label' => 'School', 'description' => 'Octopusscholen', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-welcome-learn-more', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'sb_school', $args ); } add_action( 'init', 'sb_type_school', 0 ); }