_x('AR Models', 'Post Type General Name', 'twentythirteen'), 'singular_name' => _x('Models', 'Post Type Singular Name', 'twentythirteen'), 'menu_name' => __('AR Models', 'twentythirteen'), 'parent_item_colon' => __('Parent Models', 'twentythirteen'), 'all_items' => __('All AR Models', 'twentythirteen'), 'view_item' => __('View Models', 'twentythirteen'), 'add_new_item' => __('Add New Models', 'twentythirteen'), 'add_new' => __('Add New', 'twentythirteen'), 'edit_item' => __('Edit Models', 'twentythirteen'), 'update_item' => __('Update Models', 'twentythirteen'), 'search_items' => __('Search Models', 'twentythirteen'), 'not_found' => __('Not Found', 'twentythirteen'), 'not_found_in_trash' => __('Not found in Trash', 'twentythirteen'), ); // Set other options for ar_woo_advance Post Type $args = array( 'label' => __('AR Models', 'twentythirteen'), 'description' => __('Models news and reviews', 'twentythirteen'), 'labels' => $labels, 'supports' => array('title', 'editor', 'thumbnail'), 'taxonomies' => array('genres'), 'hierarchical' => false, 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'menu_icon' => plugins_url( "assets/css/images/menu_icon.png", __FILE__ ), ); // Registering your ar_woo_advance Post Type register_post_type('AR Models', $args); } add_action('init', 'ar_wp_post_type', 0); //taxonomy, make it hierarchical like categories add_action('init', 'ar_wp_product_hierarchical_taxonomy', 0); function ar_wp_product_hierarchical_taxonomy() { $labels = array( 'name' => _x('AR Categories', 'taxonomy general name'), 'singular_name' => _x('Models Category', 'taxonomy singular name'), 'search_items' => __('Search AR Categories'), 'all_items' => __('All AR Categories'), 'parent_item' => __('Parent Models Category'), 'parent_item_colon' => __('Parent Models Category:'), 'edit_item' => __('Edit Models Category'), 'update_item' => __('Update Models Category'), 'add_new_item' => __('Add New Models Category'), 'new_item_name' => __('New Models Category Name'), 'menu_name' => __('AR Categories'), ); // Now register the taxonomy register_taxonomy('model_category', array('armodels'), array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array('slug' => 'model_category'), )); } ?>