KG Ministry CPT
// Register Custom Post Type
function kg_cpt_ministry() {
$labels = array(
'name' => 'Ministries',
'singular_name' => 'Ministry',
'menu_name' => 'Ministry',
'name_admin_bar' => 'Ministry',
'archives' => 'Ministry Archives',
'attributes' => 'Item Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Ministries',
'add_new_item' => 'Add New Ministry',
'add_new' => 'Add New Ministry',
'new_item' => 'New Ministry',
'edit_item' => 'Edit Ministry',
'update_item' => 'Update Ministry',
'view_item' => 'View Ministry',
'view_items' => 'View Ministries',
'search_items' => 'Search Ministry',
'not_found' => 'Ministry Not found',
'not_found_in_trash' => 'Ministry Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into ministry',
'uploaded_to_this_item' => 'Uploaded to this ministry',
'items_list' => 'Ministries list',
'items_list_navigation' => 'Ministries list navigation',
'filter_items_list' => 'Filter ministries list',
);
$args = array(
'label' => 'Ministry',
'description' => 'Ministry staff members',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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( 'ministry', $args );
}
add_action( 'init', 'kg_cpt_ministry', 0 );