Adventure Groups
if ( ! function_exists('adventure_groups') ) {
// Register Custom Post Type
function adventure_groups() {
$labels = array(
'name' => _x( 'Adventure Groups', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Adventure Group', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Groups', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'All Groups', 'text_domain' ),
'view_item' => __( 'View groups', 'text_domain' ),
'add_new_item' => __( 'Add New Group', 'text_domain' ),
'add_new' => __( 'Add New Group', 'text_domain' ),
'edit_item' => __( 'Edit Group', 'text_domain' ),
'update_item' => __( 'Update Group', 'text_domain' ),
'search_items' => __( 'Search Group', 'text_domain' ),
'not_found' => __( 'No Group Found', 'text_domain' ),
'not_found_in_trash' => __( 'No Groups in Trash', 'text_domain' ),
);
$args = array(
'label' => __( 'adventure_groups', 'text_domain' ),
'description' => __( 'Custom post type for adding groups to Adventure 365', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'menu_icon' => 'http://icons.iconarchive.com/icons/arkangl300/zero-folders/16/group-icon.png',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'adventure_groups', $args );
}
// Hook into the 'init' action
add_action( 'init', 'adventure_groups', 0 );
}