forked from pantharshit00/fcc_dbmigrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-post-types.php
1251 lines (1185 loc) · 39.4 KB
/
custom-post-types.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/*Plugin Name: Franciscan Custom Types
Description: This plugin registers the post types needed for the main Franciscan University site.
Version: 1.0
Author: Jesse R Weigel
Author URI: jesseweigel.com
License: GPLv2
*/
// register custom post types
function create_new_type() {
// Create Product type
// This type is not currently in use but the code is here in case it is needed later
// set up labels
// $labels = array(
// 'name' => 'Products',
// 'singular_name' => 'Product',
// 'add_new' => 'Add New Product',
// 'add_new_item' => 'Add New Product',
// 'edit_item' => 'Edit Product',
// 'new_item' => 'New Product',
// 'all_items' => 'All Products',
// 'view_item' => 'View Product',
// 'search_items' => 'Search Products',
// 'not_found' => 'No Products Found',
// 'not_found_in_trash' => 'No Products found in Trash',
// 'parent_item_colon' => '',
// 'menu_name' => 'Products',
// );
// //register post type
// register_post_type( 'product', array(
// 'labels' => $labels,
// 'has_archive' => true,
// 'public' => true,
// 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
// 'taxonomies' => array( 'brands', 'body-material-options' ),
// 'exclude_from_search' => false,
// 'capability_type' => 'post',
// 'rewrite' => array( 'slug' => 'products' ),
// 'show_in_rest' => true,
// 'show_in_menu' => true,
// )
// );
// Create Faculty type
// set up labels
$labels = array(
'name' => 'Faculty',
'singular_name' => 'Faculty',
'add_new' => 'Add New Faculty',
'add_new_item' => 'Add New Faculty',
'edit_item' => 'Edit Faculty',
'new_item' => 'New Faculty',
'all_items' => 'All Faculty',
'view_item' => 'View Faculty',
'search_items' => 'Search Faculty',
'not_found' => 'No Faculty Found',
'not_found_in_trash' => 'No Faculty found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Faculty',
);
//register post type
register_post_type( 'faculty', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'faculty' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'faculty',
'graphql_plural_name' => 'faculty',
)
);
// Create Directory type
// set up labels
$labels = array(
'name' => 'Directories',
'singular_name' => 'Directory',
'add_new' => 'Add New Directory',
'add_new_item' => 'Add New Directory',
'edit_item' => 'Edit Directory',
'new_item' => 'New Directory',
'all_items' => 'All Directories',
'view_item' => 'View Directory',
'search_items' => 'Search Directories',
'not_found' => 'No Directories Found',
'not_found_in_trash' => 'No Directories found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Directories',
);
//register post type
register_post_type( 'directory', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'directories' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'directory',
'graphql_plural_name' => 'directories',
)
);
// Create News type
// set up labels
$labels = array(
'name' => 'News',
'singular_name' => 'News',
'add_new' => 'Add New News',
'add_new_item' => 'Add New News',
'edit_item' => 'Edit News',
'new_item' => 'New News',
'all_items' => 'All News',
'view_item' => 'View News',
'search_items' => 'Search News',
'not_found' => 'No News Found',
'not_found_in_trash' => 'No News found in Trash',
'parent_item_colon' => '',
'menu_name' => 'News',
);
//register post type
register_post_type( 'news', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'news' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'news',
'graphql_plural_name' => 'news',
)
);
// Create Department type
// set up labels
$labels = array(
'name' => 'Departments',
'singular_name' => 'Department',
'add_new' => 'Add New Department',
'add_new_item' => 'Add New Department',
'edit_item' => 'Edit Department',
'new_item' => 'New Department',
'all_items' => 'All Departments',
'view_item' => 'View Department',
'search_items' => 'Search Departments',
'not_found' => 'No Departments Found',
'not_found_in_trash' => 'No Departments found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Departments',
);
//register post type
register_post_type( 'department', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'departments' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'department',
'graphql_plural_name' => 'departments',
)
);
// Create Major type
// set up labels
$labels = array(
'name' => 'Majors',
'singular_name' => 'Major',
'add_new' => 'Add New Major',
'add_new_item' => 'Add New Major',
'edit_item' => 'Edit Major',
'new_item' => 'New Major',
'all_items' => 'All Majors',
'view_item' => 'View Major',
'search_items' => 'Search Majors',
'not_found' => 'No Majors Found',
'not_found_in_trash' => 'No Majors found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Majors',
);
//register post type
register_post_type( 'major', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'majors' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'major',
'graphql_plural_name' => 'majors',
)
);
// Create Human Resource type
// set up labels
$labels = array(
'name' => 'Human Resources',
'singular_name' => 'Human Resource',
'add_new' => 'Add New Human Resource',
'add_new_item' => 'Add New Human Resource',
'edit_item' => 'Edit Human Resource',
'new_item' => 'New Human Resource',
'all_items' => 'All Human Resources',
'view_item' => 'View Human Resource',
'search_items' => 'Search Human Resources',
'not_found' => 'No Human Resources Found',
'not_found_in_trash' => 'No Human Resources found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Human Resources',
);
//register post type
register_post_type( 'human-resource', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'human-resources' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'humanResource',
'graphql_plural_name' => 'humanResources',
)
);
// Create Campus Security type
// set up labels
$labels = array(
'name' => 'Campus Security',
'singular_name' => 'Campus Security',
'add_new' => 'Add New Campus Security',
'add_new_item' => 'Add New Campus Security',
'edit_item' => 'Edit Campus Security',
'new_item' => 'New Campus Security',
'all_items' => 'All Campus Security',
'view_item' => 'View Campus Security',
'search_items' => 'Search Campus Security',
'not_found' => 'No Campus Security Found',
'not_found_in_trash' => 'No Campus Security found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Campus Security',
);
//register post type
register_post_type( 'campus-security', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'campus-security' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'campusSecurity',
'graphql_plural_name' => 'campusSecurity',
)
);
// Create Video type
// set up labels
$labels = array(
'name' => 'Videos',
'singular_name' => 'Video',
'add_new' => 'Add New Video',
'add_new_item' => 'Add New Video',
'edit_item' => 'Edit Video',
'new_item' => 'New Video',
'all_items' => 'All Videos',
'view_item' => 'View Video',
'search_items' => 'Search Videos',
'not_found' => 'No Videos Found',
'not_found_in_trash' => 'No Videos found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Videos',
);
//register post type
register_post_type( 'video', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'videos' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'video',
'graphql_plural_name' => 'videos',
)
);
// Create Associate Degree Program type
// set up labels
$labels = array(
'name' => 'Associate Programs',
'singular_name' => 'Associate Program',
'add_new' => 'Add New Associate Program',
'add_new_item' => 'Add New Associate Program',
'edit_item' => 'Edit Associate Program',
'new_item' => 'New Associate Program',
'all_items' => 'All Associate Programs',
'view_item' => 'View Associate Program',
'search_items' => 'Search Associate Programs',
'not_found' => 'No Associate Programs Found',
'not_found_in_trash' => 'No Associate Programs found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Associate Programs',
);
//register post type
register_post_type( 'associate-program', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'associate-programs' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'associateProgram',
'graphql_plural_name' => 'associatePrograms',
)
);
// Create Minor type
// set up labels
$labels = array(
'name' => 'Minors',
'singular_name' => 'Minor',
'add_new' => 'Add New Minor',
'add_new_item' => 'Add New Minor',
'edit_item' => 'Edit Minor',
'new_item' => 'New Minor',
'all_items' => 'All Minors',
'view_item' => 'View Minor',
'search_items' => 'Search Minors',
'not_found' => 'No Minors Found',
'not_found_in_trash' => 'No Minors found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Minors',
);
//register post type
register_post_type( 'minor', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'minors' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'minor',
'graphql_plural_name' => 'minors',
)
);
// Create Institute type
// set up labels
$labels = array(
'name' => 'Institutes',
'singular_name' => 'Institute',
'add_new' => 'Add New Institute',
'add_new_item' => 'Add New Institute',
'edit_item' => 'Edit Institute',
'new_item' => 'New Institute',
'all_items' => 'All Institutes',
'view_item' => 'View Institute',
'search_items' => 'Search Institutes',
'not_found' => 'No Institutes Found',
'not_found_in_trash' => 'No Institutes found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Institutes',
);
//register post type
register_post_type( 'institute', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'institutes' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'institute',
'graphql_plural_name' => 'institutes',
)
);
// Create Staff Member type
// set up labels
$labels = array(
'name' => 'Staff Members',
'singular_name' => 'Staff Member',
'add_new' => 'Add New Staff Member',
'add_new_item' => 'Add New Staff Member',
'edit_item' => 'Edit Staff Member',
'new_item' => 'New Staff Member',
'all_items' => 'All Staff Members',
'view_item' => 'View Staff Member',
'search_items' => 'Search Staff Members',
'not_found' => 'No Staff Members Found',
'not_found_in_trash' => 'No Staff Members found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Staff Members',
);
//register post type
register_post_type( 'staff-member', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'staff-members' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'staffMember',
'graphql_plural_name' => 'staffMembers',
)
);
// Create Event type
// set up labels
$labels = array(
'name' => 'Events',
'singular_name' => 'Event',
'add_new' => 'Add New Event',
'add_new_item' => 'Add New Event',
'edit_item' => 'Edit Event',
'new_item' => 'New Event',
'all_items' => 'All Events',
'view_item' => 'View Event',
'search_items' => 'Search Events',
'not_found' => 'No Events Found',
'not_found_in_trash' => 'No Events found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Events',
);
//register post type
register_post_type( 'event', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'events' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'event',
'graphql_plural_name' => 'events',
)
);
// Create About Page type
// set up labels
$labels = array(
'name' => 'About Pages',
'singular_name' => 'About Page',
'add_new' => 'Add New About Page',
'add_new_item' => 'Add New About Page',
'edit_item' => 'Edit About Page',
'new_item' => 'New About Page',
'all_items' => 'All About Pages',
'view_item' => 'View About Page',
'search_items' => 'Search About Pages',
'not_found' => 'No About Pages Found',
'not_found_in_trash' => 'No About Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'About Pages',
);
//register post type
register_post_type( 'about-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'about-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'aboutPage',
'graphql_plural_name' => 'aboutPages',
)
);
// Create Chapel Page type
// set up labels
$labels = array(
'name' => 'Chapel Pages',
'singular_name' => 'Chapel Page',
'add_new' => 'Add New Chapel Page',
'add_new_item' => 'Add New Chapel Page',
'edit_item' => 'Edit Chapel Page',
'new_item' => 'New Chapel Page',
'all_items' => 'All Chapel Pages',
'view_item' => 'View Chapel Page',
'search_items' => 'Search Chapel Pages',
'not_found' => 'No Chapel Pages Found',
'not_found_in_trash' => 'No Chapel Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Chapel Pages',
);
//register post type
register_post_type( 'chapel-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'chapel-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'chapelPage',
'graphql_plural_name' => 'chapelPages',
)
);
// Create Academics Page type
// set up labels
$labels = array(
'name' => 'Academics Pages',
'singular_name' => 'Academics Page',
'add_new' => 'Add New Academics Page',
'add_new_item' => 'Add New Academics Page',
'edit_item' => 'Edit Academics Page',
'new_item' => 'New Academics Page',
'all_items' => 'All Academics Pages',
'view_item' => 'View Academics Page',
'search_items' => 'Search Academics Pages',
'not_found' => 'No Academics Pages Found',
'not_found_in_trash' => 'No Academics Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Academics Pages',
);
//register post type
register_post_type( 'academics-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'academics-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'academicsPage',
'graphql_plural_name' => 'academicsPages',
)
);
// Create Admissions Page type
// set up labels
$labels = array(
'name' => 'Admissions Pages',
'singular_name' => 'Admissions Page',
'add_new' => 'Add New Admissions Page',
'add_new_item' => 'Add New Admissions Page',
'edit_item' => 'Edit Admissions Page',
'new_item' => 'New Admissions Page',
'all_items' => 'All Admissions Pages',
'view_item' => 'View Admissions Page',
'search_items' => 'Search Admissions Pages',
'not_found' => 'No Admissions Pages Found',
'not_found_in_trash' => 'No Admissions Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Admissions Pages',
);
//register post type
register_post_type( 'admissions-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'admissions-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'admissionsPage',
'graphql_plural_name' => 'admissionsPages',
)
);
// Create SFS Page type
// set up labels
$labels = array(
'name' => 'SFS Pages',
'singular_name' => 'SFS Page',
'add_new' => 'Add New SFS Page',
'add_new_item' => 'Add New SFS Page',
'edit_item' => 'Edit SFS Page',
'new_item' => 'New SFS Page',
'all_items' => 'All SFS Pages',
'view_item' => 'View SFS Page',
'search_items' => 'Search SFS Pages',
'not_found' => 'No SFS Pages Found',
'not_found_in_trash' => 'No SFS Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'SFS Pages',
);
//register post type
register_post_type( 'sfs-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'sfs-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'sfsPage',
'graphql_plural_name' => 'sfsPages',
)
);
// Create Austria Page type
// set up labels
$labels = array(
'name' => 'Austria Pages',
'singular_name' => 'Austria Page',
'add_new' => 'Add New Austria Page',
'add_new_item' => 'Add New Austria Page',
'edit_item' => 'Edit Austria Page',
'new_item' => 'New Austria Page',
'all_items' => 'All Austria Pages',
'view_item' => 'View Austria Page',
'search_items' => 'Search Austria Pages',
'not_found' => 'No Austria Pages Found',
'not_found_in_trash' => 'No Austria Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Austria Pages',
);
//register post type
register_post_type( 'austria-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'austria-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'austriaPage',
'graphql_plural_name' => 'austriaPages',
)
);
// Create Student Life Page type
// set up labels
$labels = array(
'name' => 'Student Life Pages',
'singular_name' => 'Student Life Page',
'add_new' => 'Add New Student Life Page',
'add_new_item' => 'Add New Student Life Page',
'edit_item' => 'Edit Student Life Page',
'new_item' => 'New Student Life Page',
'all_items' => 'All Student Life Pages',
'view_item' => 'View Student Life Page',
'search_items' => 'Search Student Life Pages',
'not_found' => 'No Student Life Pages Found',
'not_found_in_trash' => 'No Student Life Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Student Life Pages',
);
//register post type
register_post_type( 'student-life-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'student-life-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'studentLifePage',
'graphql_plural_name' => 'studentLifePages',
)
);
// Create Information Technology Page type
// set up labels
$labels = array(
'name' => 'ITS Pages',
'singular_name' => 'ITS Page',
'add_new' => 'Add New ITS Page',
'add_new_item' => 'Add New ITS Page',
'edit_item' => 'Edit ITS Page',
'new_item' => 'New ITS Page',
'all_items' => 'All ITS Pages',
'view_item' => 'View ITS Page',
'search_items' => 'Search ITS Pages',
'not_found' => 'No ITS Pages Found',
'not_found_in_trash' => 'No ITS Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'ITS Pages',
);
//register post type
register_post_type( 'its-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'its-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'itsPage',
'graphql_plural_name' => 'itsPages',
)
);
// Create FISH Page type
// set up labels
$labels = array(
'name' => 'FISH Pages',
'singular_name' => 'FISH Page',
'add_new' => 'Add New FISH Page',
'add_new_item' => 'Add New FISH Page',
'edit_item' => 'Edit FISH Page',
'new_item' => 'New FISH Page',
'all_items' => 'All FISH Pages',
'view_item' => 'View FISH Page',
'search_items' => 'Search FISH Pages',
'not_found' => 'No FISH Pages Found',
'not_found_in_trash' => 'No FISH Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'FISH Pages',
);
//register post type
register_post_type( 'fish-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'fish-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'fishPage',
'graphql_plural_name' => 'fishPages',
)
);
// Create FIWH Page type
// set up labels
$labels = array(
'name' => 'FIWH Pages',
'singular_name' => 'FIWH Page',
'add_new' => 'Add New FIWH Page',
'add_new_item' => 'Add New FIWH Page',
'edit_item' => 'Edit FIWH Page',
'new_item' => 'New FIWH Page',
'all_items' => 'All FIWH Pages',
'view_item' => 'View FIWH Page',
'search_items' => 'Search FIWH Pages',
'not_found' => 'No FIWH Pages Found',
'not_found_in_trash' => 'No FIWH Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'FIWH Pages',
);
//register post type
register_post_type( 'fiwh-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'fiwh-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'fiwhPage',
'graphql_plural_name' => 'fiwhPages',
)
);
// Create PDP Page type
// set up labels
$labels = array(
'name' => 'PDP Pages',
'singular_name' => 'PDP Page',
'add_new' => 'Add New PDP Page',
'add_new_item' => 'Add New PDP Page',
'edit_item' => 'Edit PDP Page',
'new_item' => 'New PDP Page',
'all_items' => 'All PDP Pages',
'view_item' => 'View PDP Page',
'search_items' => 'Search PDP Pages',
'not_found' => 'No PDP Pages Found',
'not_found_in_trash' => 'No PDP Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'PDP Pages',
);
//register post type
register_post_type( 'pdp-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'pdp-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'pdpPage',
'graphql_plural_name' => 'pdpPages',
)
);
// Create Press Page type
// set up labels
$labels = array(
'name' => 'Press Pages',
'singular_name' => 'Press Page',
'add_new' => 'Add New Press Page',
'add_new_item' => 'Add New Press Page',
'edit_item' => 'Edit Press Page',
'new_item' => 'New Press Page',
'all_items' => 'All Press Pages',
'view_item' => 'View Press Page',
'search_items' => 'Search Press Pages',
'not_found' => 'No Press Pages Found',
'not_found_in_trash' => 'No Press Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Press Pages',
);
//register post type
register_post_type( 'press-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'press-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'pressPage',
'graphql_plural_name' => 'pressPages',
)
);
// Create Veritas Page type
// set up labels
$labels = array(
'name' => 'Veritas Pages',
'singular_name' => 'Veritas Page',
'add_new' => 'Add New Veritas Page',
'add_new_item' => 'Add New Veritas Page',
'edit_item' => 'Edit Veritas Page',
'new_item' => 'New Veritas Page',
'all_items' => 'All Veritas Pages',
'view_item' => 'View Veritas Page',
'search_items' => 'Search Veritas Pages',
'not_found' => 'No Veritas Pages Found',
'not_found_in_trash' => 'No Veritas Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Veritas Pages',
);
//register post type
register_post_type( 'veritas-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'veritas-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'veritasPage',
'graphql_plural_name' => 'veritasPages',
)
);
// Create Bioethics Page type
// set up labels
$labels = array(
'name' => 'Bioethics Pages',
'singular_name' => 'Bioethics Page',
'add_new' => 'Add New Bioethics Page',
'add_new_item' => 'Add New Bioethics Page',
'edit_item' => 'Edit Bioethics Page',
'new_item' => 'New Bioethics Page',
'all_items' => 'All Bioethics Pages',
'view_item' => 'View Bioethics Page',
'search_items' => 'Search Bioethics Pages',
'not_found' => 'No Bioethics Pages Found',
'not_found_in_trash' => 'No Bioethics Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Bioethics Pages',
);
//register post type
register_post_type( 'bioethics-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'bioethics-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'bioethicsPage',
'graphql_plural_name' => 'bioethicsPages',
)
);
// Create Pilgrimages Page type
// set up labels
$labels = array(
'name' => 'Pilgrimages Pages',
'singular_name' => 'Pilgrimages Page',
'add_new' => 'Add New Pilgrimages Page',
'add_new_item' => 'Add New Pilgrimages Page',
'edit_item' => 'Edit Pilgrimages Page',
'new_item' => 'New Pilgrimages Page',
'all_items' => 'All Pilgrimages Pages',
'view_item' => 'View Pilgrimages Page',
'search_items' => 'Search Pilgrimages Pages',
'not_found' => 'No Pilgrimages Pages Found',
'not_found_in_trash' => 'No Pilgrimages Pages found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Pilgrimages Pages',
);
//register post type
register_post_type( 'pilgrimages-page', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'pilgrimages-pages' ),
'show_in_rest' => true,
'show_in_menu' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'pilgrimagesPage',
'graphql_plural_name' => 'pilgrimagesPages',
)
);
// Create Households Page type
// set up labels
$labels = array(
'name' => 'Households Pages',