Collider Post Type: Investors
Collider Post Type: Investors
if ( ! function_exists('collidertheme_investors_post_type') ) {
// Register Custom Post Type
function collidertheme_investors_post_type() {
$labels = array(
'name' => 'Investors',
'singular_name' => 'Investor',
'menu_name' => 'Investors',
'name_admin_bar' => 'Investor',
'parent_item_colon' => 'Parent Investor:',
'all_items' => 'All Investors',
'add_new_item' => 'Add New Investor',
'add_new' => 'Add New',
'new_item' => 'New Investor',
'edit_item' => 'Edit Investor',
'update_item' => 'Update Investor',
'view_item' => 'View Investor',
'search_items' => 'Search Investors',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'Investor',
'description' => 'Collider Investors',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 10,
'menu_icon' => 'dashicons-heart',
'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' => 'post',
);
register_post_type( 'investors', $args );
}
add_action( 'init', 'collidertheme_investors_post_type', 0 );
}