VKS Führungen 1
// Register Custom Post Type
function vks_fuehrungen() {
$labels = array(
'name' => _x( 'Führungen', 'Post Type General Name', 'vks' ),
'singular_name' => _x( 'Führung', 'Post Type Singular Name', 'vks' ),
'menu_name' => __( 'Führungen', 'vks' ),
'name_admin_bar' => __( 'Führungen', 'vks' ),
'parent_item_colon' => __( 'Elternelement:', 'vks' ),
'all_items' => __( 'Alle Einträge', 'vks' ),
'add_new_item' => __( 'Neuen Eintrag erstellen', 'vks' ),
'add_new' => __( 'Erstellen', 'vks' ),
'new_item' => __( 'Neuer Eintrag', 'vks' ),
'edit_item' => __( 'Eintrag bearbeiten', 'vks' ),
'update_item' => __( 'Eintrag aktualisieren', 'vks' ),
'view_item' => __( 'Eintrag ansehen', 'vks' ),
'search_items' => __( 'Eintrag suchen', 'vks' ),
'not_found' => __( 'Kein Eintrag gefunden', 'vks' ),
'not_found_in_trash' => __( 'Kein Eintrag im Papierkorb gefunden', 'vks' ),
);
$args = array(
'label' => __( 'fuehrung', 'vks' ),
'description' => __( 'Führungen-Datenbank des Kölner Stadtführer e.V.', 'vks' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-location',
'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' => 'page',
);
register_post_type( 'fuehrung', $args );
}
// Hook into the 'init' action
add_action( 'init', 'vks_fuehrungen', 0 );