[gnome-web-www] Add staff as a page type



commit 77be053cb0c13c5424763187b8c81ee0d96368f3
Author: Neil McGovern <neil gnome org>
Date:   Thu Jul 4 14:00:37 2019 +0100

    Add staff as a page type

 theme/functions.php | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/theme/functions.php b/theme/functions.php
index 6b41861..9070b47 100644
--- a/theme/functions.php
+++ b/theme/functions.php
@@ -176,6 +176,33 @@ add_action( 'init', function() {
         )
     );
 
+    register_post_type( 'staff',
+        array(
+            'labels' => array(
+                'name' => 'Foundation Staff',
+                'singular_name' => 'Foundation Staff',
+                'add_new' => 'Add New',
+                'add_new_item' => 'Add New Staff',
+                'edit' => 'Edit',
+                'edit_item' => 'Edit',
+                'new_item' => 'New Staff',
+                'view' => 'View',
+                'view_item' => 'View Staff',
+                'search_items' => 'Search Staffs',
+                'not_found' => 'No Staffs found',
+                'not_found_in_trash' => 'No Staffs found in Trash',
+                'parent' => 'Parent Staff',
+            ),
+            'public' => false,
+            'show_ui' => true,
+            'exclude_from_search' => true,
+            'supports' => array(
+                'title', 'thumbnail', 'excerpt', 'revisions', 'author'
+            ),
+            'rewrite' => true
+        )
+    );
+
     register_post_type( 'directors',
         array(
             'labels' => array(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]