|
|
@@ -281,7 +281,7 @@ function mitarbeiter() {
|
|
|
'label' => __('mitarbeiter', 'theme'),
|
|
|
'labels' => $labels,
|
|
|
'description' => __('Team', 'theme'),
|
|
|
- 'supports' => array('title', 'thumbnail'),
|
|
|
+ 'supports' => array('title', 'editor', 'thumbnail'),
|
|
|
//'taxonomies' => array('category', 'post_tag'),
|
|
|
'hierarchical' => false,
|
|
|
'public' => true,
|
|
|
@@ -292,7 +292,7 @@ function mitarbeiter() {
|
|
|
'show_in_nav_menus' => true,
|
|
|
'can_export' => true,
|
|
|
'has_archive' => true,
|
|
|
- 'exclude_from_search' => false,
|
|
|
+ 'exclude_from_search' => true,
|
|
|
'publicly_queryable' => true,
|
|
|
'capability_type' => 'page',
|
|
|
'menu_icon' => 'dashicons-id',
|
|
|
@@ -483,6 +483,8 @@ function admin_init(){
|
|
|
// mitarbetier
|
|
|
add_meta_box("mitarbeiter-position", "Position", "mitarbeiter_position", "mitarbeiter", "normal", "low");
|
|
|
add_meta_box("mitarbeiter-email", "Email", "mitarbeiter_email", "mitarbeiter", "normal", "low");
|
|
|
+ add_meta_box("mitarbeiter-beschreibung", "Beschreibung", "mitarbeiter_beschreibung", "mitarbeiter", "normal", "low");
|
|
|
+ add_meta_box("mitarbeiter-tel", "Telefonnummer", "mitarbeiter_tel", "mitarbeiter", "normal", "low");
|
|
|
// Projekte
|
|
|
add_meta_box("projekt-beschreibung", "Description", "projekt_beschreibung", "projekte", "normal", "low");
|
|
|
add_meta_box("projekt-link", "Link", "projekt_link", "projekte", "normal", "low");
|
|
|
@@ -516,6 +518,26 @@ function mitarbeiter_position(){
|
|
|
<?php
|
|
|
}
|
|
|
|
|
|
+function mitarbeiter_beschreibung(){
|
|
|
+ global $post;
|
|
|
+ $custom = get_post_custom($post->ID);
|
|
|
+ $mitarbeiter_beschreibung = $custom["mitarbeiter_beschreibung"][0];
|
|
|
+ ?>
|
|
|
+ <label>Position:</label>
|
|
|
+ <input name="mitarbeiter_beschreibung" value="<?php echo $mitarbeiter_beschreibung; ?>" />
|
|
|
+ <?php
|
|
|
+}
|
|
|
+
|
|
|
+function mitarbeiter_tel(){
|
|
|
+ global $post;
|
|
|
+ $custom = get_post_custom($post->ID);
|
|
|
+ $mitarbeiter_tel = $custom["mitarbeiter_tel"][0];
|
|
|
+ ?>
|
|
|
+ <label>Position:</label>
|
|
|
+ <input name="mitarbeiter_tel" value="<?php echo $mitarbeiter_tel; ?>" />
|
|
|
+ <?php
|
|
|
+}
|
|
|
+
|
|
|
function projekt_beschreibung(){
|
|
|
global $post;
|
|
|
$custom = get_post_custom($post->ID);
|
|
|
@@ -596,6 +618,8 @@ function save_details(){
|
|
|
// mitarbeiter
|
|
|
update_post_meta($post->ID, "mitarbeiter_position", $_POST["mitarbeiter_position"]);
|
|
|
update_post_meta($post->ID, "mitarbeiter_email", $_POST["mitarbeiter_email"]);
|
|
|
+ update_post_meta($post->ID, "mitarbeiter_beschreibung", $_POST["mitarbeiter_beschreibung"]);
|
|
|
+ update_post_meta($post->ID, "mitarbeiter_tel", $_POST["mitarbeiter_tel"]);
|
|
|
// Projekte
|
|
|
update_post_meta($post->ID, "projekt_beschreibung", $_POST["projekt_beschreibung"]);
|
|
|
update_post_meta($post->ID, "projekt_link", $_POST["projekt_link"]);
|