Funerals & Unveilings
if ( ! function_exists('custom_post_type') ) {
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => _x( 'Funerals', 'Post Type General Name', 'chevrah_kadisha' ),
'singular_name' => _x( 'Funeral', 'Post Type Singular Name', 'chevrah_kadisha' ),
'menu_name' => __( 'Funerals & Unveilings', 'chevrah_kadisha' ),
'parent_item_colon' => __( 'Parent Item:', 'chevrah_kadisha' ),
'all_items' => __( 'All Funerals & Unveilings', 'chevrah_kadisha' ),
'view_item' => __( 'View Item', 'chevrah_kadisha' ),
'add_new_item' => __( 'Add New Funeral or Unveiling', 'chevrah_kadisha' ),
'add_new' => __( 'Add New', 'chevrah_kadisha' ),
'edit_item' => __( 'Edit Funeral or Unveiling', 'chevrah_kadisha' ),
'update_item' => __( 'Update Funeral or Unveiling', 'chevrah_kadisha' ),
'search_items' => __( 'Search Funerals & Unveilings', 'chevrah_kadisha' ),
'not_found' => __( 'No Funerals & Unveilings found', 'chevrah_kadisha' ),
'not_found_in_trash' => __( 'No Funerals & Unveilings found in Trash', 'chevrah_kadisha' ),
);
$args = array(
'label' => __( 'chev_funeral', 'chevrah_kadisha' ),
'description' => __( 'Funerals & Unveilings', 'chevrah_kadisha' ),
'labels' => $labels,
'supports' => array( ),
'taxonomies' => array( 'funeral_type' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 25,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'chev_funeral', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );
}