GWC Ministries
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => 'Ministries',
'singular_name' => 'Ministry',
'menu_name' => 'Staff',
'parent_item_colon' => 'Parent Staff Member:',
'all_items' => 'All Staff',
'view_item' => 'View Staff',
'add_new_item' => 'Add New Staff',
'add_new' => 'Add New',
'edit_item' => 'Edit Staff',
'update_item' => 'Update Staff',
'search_items' => 'Search Staff',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$rewrite = array(
'slug' => 'staff',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => 'tap_ministries',
'description' => 'Ministries',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-businessman',
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'tap_ministries', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );