array( 'name' => __( $service_title , 'ap-cpt' ), 'singular_name' => __( 'Service', 'ap-cpt' ), 'all_items' => __( 'All Services', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Service', 'ap-cpt' ), 'edit' => __( 'Edit Service', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Services', 'ap-cpt' ), 'view_item' => __( 'View Services', 'ap-cpt' ), 'search_items' => __( 'Search Services', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 22, 'menu_icon' => 'dashicons-clipboard', 'has_archive' => 'service', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt') ) ); /** * Featured Products post type */ register_post_type( 'products', array( 'labels' => array( 'name' => __( $porduct_title, 'ap-cpt' ), 'singular_name' => __( 'Product', 'ap-cpt' ), 'all_items' => __( 'All Products', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Product', 'ap-cpt' ), 'edit' => __( 'Edit Product', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Product', 'ap-cpt' ), 'view_item' => __( 'View Products', 'ap-cpt' ), 'search_items' => __( 'Search Products', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 23, 'menu_icon' => 'dashicons-cart', 'has_archive' => 'products', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'thumbnail') ) ); /** * Our Team post type */ register_post_type( 'team-members', array( 'labels' => array( 'name' => __( $team_title, 'ap-cpt' ), 'singular_name' => __( 'Team Member', 'ap-cpt' ), 'all_items' => __( 'All Team Members', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Member', 'ap-cpt' ), 'edit' => __( 'Edit Member', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Member', 'ap-cpt' ), 'view_item' => __( 'View Members', 'ap-cpt' ), 'search_items' => __( 'Search Members', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 24, 'menu_icon' => 'dashicons-groups', 'has_archive' => 'team-members', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail') ) ); /** * Testimonials post type */ register_post_type( 'testimonials', array( 'labels' => array( 'name' => __( $testimonials_title, 'ap-cpt' ), 'singular_name' => __( 'Testimonial', 'ap-cpt' ), 'all_items' => __( 'All Testimonials', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Testimonial', 'ap-cpt' ), 'edit' => __( 'Edit Testimonial', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Testimonial', 'ap-cpt' ), 'view_item' => __( 'View Testimonials', 'ap-cpt' ), 'search_items' => __( 'Search Testimonials', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-businessman', 'has_archive' => 'testimonial', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail') ) ); /** * Clients post type */ register_post_type( 'clients', array( 'labels' => array( 'name' => __( $client_title, 'ap-cpt' ), 'singular_name' => __( 'Client', 'ap-cpt' ), 'all_items' => __( 'All Clients', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Client', 'ap-cpt' ), 'edit' => __( 'Edit Client', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Client', 'ap-cpt' ), 'view_item' => __( 'View Clients', 'ap-cpt' ), 'search_items' => __( 'Search Clients', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 26, 'menu_icon' => 'dashicons-universal-access', 'has_archive' => 'client', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail') ) ); /** * Portfolio post type */ register_post_type( 'portfolios', array( 'labels' => array( 'name' => __( $portfolio_title, 'ap-cpt' ), 'singular_name' => __( 'Portfolio', 'ap-cpt' ), 'all_items' => __( 'All Portfolios', 'ap-cpt' ), 'add_new' => __( 'Add New', 'ap-cpt' ), 'add_new_item' => __( 'Add New Portfolio', 'ap-cpt' ), 'edit' => __( 'Edit Portfolio', 'ap-cpt' ), 'edit_item' => __( 'Edit', 'ap-cpt' ), 'new_item' => __( 'New Post Portfolio', 'ap-cpt' ), 'view_item' => __( 'View Portfolios', 'ap-cpt' ), 'search_items' => __( 'Search Portfolios', 'ap-cpt' ), 'not_found' => __( 'Nothing found in the Database.', 'ap-cpt' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ap-cpt' ), 'parent_item_colon' => '' ), 'public' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'show_ui' => true, 'query_var' => true, 'menu_position' => 27, 'menu_icon' => 'dashicons-portfolio', 'has_archive' => 'portfolio', 'capability_type' => 'post', 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'thumbnail') ) ); // now let's add custom categories for Galleries register_taxonomy( 'portfolio_category', array('portfolios'), array( 'hierarchical' => true, 'labels' => array( 'name' => __( 'Categories', 'ap-cpt' ), 'singular_name' => __( 'Category', 'ap-cpt' ), 'search_items' => __( 'Search Category', 'ap-cpt' ), 'all_items' => __( 'All Category', 'ap-cpt' ), 'parent_item' => __( 'Parent Category', 'ap-cpt' ), 'parent_item_colon' => __( 'Parent Category', 'ap-cpt' ), 'edit_item' => __( 'Edit Category', 'ap-cpt' ), 'update_item' => __( 'Update Category', 'ap-cpt' ), 'add_new_item' => __( 'Add New Category', 'ap-cpt' ), ) ) );