Product
Product from ONIX
// Register Custom Post Type function product() { $labels = array( 'name' => 'Products', 'singular_name' => 'Product', 'menu_name' => 'Product', 'parent_item_colon' => 'Parent Product:', 'all_items' => 'All Products', 'view_item' => 'View Product', 'add_new_item' => 'Add New Product', 'add_new' => 'Add New', 'edit_item' => 'Edit Product', 'update_item' => 'Update Product', 'search_items' => 'Search Product', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $rewrite = array( 'slug' => 'product', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => 'product', 'description' => 'Product from ONIX', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'trackbacks', 'custom-fields', ), 'hierarchical' => true, 'public' => true, '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, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'product', $args ); } // Hook into the 'init' action add_action( 'init', 'product', 0 );