Funerals
Custom post type for client website
// Register Custom Post Type function register_funerals_cpt() { $labels = array( 'name' => 'Funerals', 'singular_name' => 'Funeral', 'menu_name' => 'Funerals', 'name_admin_bar' => 'Funeral', 'archives' => 'Funeral Archives', 'attributes' => 'Funeral Attributes', 'parent_item_colon' => 'Parent Funeral:', 'all_items' => 'All Funeral', 'add_new_item' => 'Add New Funeral', 'add_new' => 'Add New Funeral', 'new_item' => 'New Funeral', 'edit_item' => 'Edit Funeral', 'update_item' => 'Update Funeral', 'view_item' => 'View Funeral', 'view_items' => 'View Funerals', 'search_items' => 'Search Funeral', 'not_found' => 'Not found', 'not_found_in_trash' => '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 Funeral', 'uploaded_to_this_item' => 'Uploaded to this Funeral', 'items_list' => 'Funerals list', 'items_list_navigation' => 'Funerals list navigation', 'filter_items_list' => 'Filter Funerals list', ); $rewrite = array( 'slug' => 'funeral', 'with_front' => true, 'pages' => true, 'feeds' => false, ); $args = array( 'label' => 'Funeral', 'description' => 'Custom post to be used for Funerals', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 10, 'menu_icon' => 'dashicons-index-card', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', 'show_in_rest' => false, ); register_post_type( 'ng-funerals', $args ); } add_action( 'init', 'register_funerals_cpt', 0 );