__( 'Projekte' ), 'singular_name' => __( 'Projekt' ), 'add_new' => __( 'Neues Projekt hinzufügen' ), 'add_new_item' => __( 'Neues Projekt hinzufügen' ), 'edit_item' => __( 'Projekt bearbeiten' ), 'new_item' => __( 'Neues Projekt' ), 'view_item' => __( 'Projekt anzeigen' ), 'search_items' => __( 'Projekte durchsuchen' ), 'not_found' => __( 'Keine Projekte gefunden' ), 'not_found_in_trash' => __( 'Keine Projekte im Papierkorb gefunden' ), ); $args = array( 'labels' => $labels, 'public' => true, 'has_archive' => true, 'menu_icon' => 'dashicons-portfolio', 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), /*'taxonomies' => array( 'category', 'post_tag' ),*/ /*commented the line above to disable categorys and post tags. Uncomment this line if indeed needed to have tags or categories*/ 'rewrite' => array( 'slug' => 'projekte' ), 'show_in_menu' => true, 'show_in_nav_menus' => true, ); register_post_type( 'projekte', $args ); } add_action( 'init', 'create_project_post_type' ); function add_project_meta_boxes() { add_meta_box( 'project_details', __( 'Projekt Details' ), 'project_details_callback', 'projekte', 'normal', 'default' ); } add_action( 'add_meta_boxes_projekte', 'add_project_meta_boxes' ); function project_details_callback( $post ) { wp_nonce_field( 'project_details', 'project_details_nonce' ); $projekt_name = get_post_meta( $post->ID, '_projekt_name', true); $projekt_website = get_post_meta( $post->ID, '_projekt_website', true ); $projekt_description = get_post_meta( $post->ID, '_projekt_description', true ); $projekt_since = get_post_meta( $post->ID, '_projekt_since', true ); $projekt_links = get_post_meta( $post->ID, '_projekt_links', true); ?>