EFA Chapters
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => 'Chapters',
'singular_name' => 'Chapter',
'menu_name' => 'Chapters',
'name_admin_bar' => 'Chapters',
'parent_item_colon' => 'Parent Chapter:',
'all_items' => 'All Chapters',
'add_new_item' => 'Add New Chapter',
'add_new' => 'Add New',
'new_item' => 'New Chapter',
'edit_item' => 'Edit Chapter',
'update_item' => 'Update Chapter',
'view_item' => 'View Chapter',
'search_items' => 'Search Chapter',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'Chapter',
'description' => 'EFA Chapters',
'labels' => $labels,
'supports' => array( 'title', 'editor', ),
'taxonomies' => array( 'zip-codes' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-location',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'chapters', $args );
}
add_action( 'init', 'custom_post_type', 0 );