Featured Artist
// Register Custom Post Type
function artist_post_type() {
$labels = array(
'name' => _x( 'Artists', 'Post Type General Name', 'yummytattoos' ),
'singular_name' => _x( 'Artist', 'Post Type Singular Name', 'yummytattoos' ),
'menu_name' => __( 'Artists', 'yummytattoos' ),
'parent_item_colon' => __( 'Parent Item:', 'yummytattoos' ),
'all_items' => __( 'All Artists', 'yummytattoos' ),
'view_item' => __( 'View Artist', 'yummytattoos' ),
'add_new_item' => __( 'Add New Artist', 'yummytattoos' ),
'add_new' => __( 'Add Featured Artist', 'yummytattoos' ),
'edit_item' => __( 'Edit Featured Artist', 'yummytattoos' ),
'update_item' => __( 'Update Featured Artist', 'yummytattoos' ),
'search_items' => __( 'Search Featured Artists', 'yummytattoos' ),
'not_found' => __( 'Not found', 'yummytattoos' ),
'not_found_in_trash' => __( 'Not found in Trash', 'yummytattoos' ),
);
$args = array(
'label' => __( 'artist_type', 'yummytattoos' ),
'description' => __( 'Featured Tattoo Artists', 'yummytattoos' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', ),
'hierarchical' => false,
'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,
'capability_type' => 'page',
);
register_post_type( 'artist_type', $args );
}
// Hook into the 'init' action
add_action( 'init', 'artist_post_type', 0 );