diff --git a/wp-content/themes/studio13/functions.php b/wp-content/themes/studio13/functions.php index 6d715cd..1468ee2 100644 --- a/wp-content/themes/studio13/functions.php +++ b/wp-content/themes/studio13/functions.php @@ -54,8 +54,7 @@ function new_excerpt_more($more) { } add_filter('excerpt_more', 'new_excerpt_more'); -/* post type */ -// Register Custom Post Type +/* Artist post type */ function studio_artists_post_type() { $labels = array( 'name' => _x( 'Artists', 'Post Type General Name', 'studio' ), @@ -100,4 +99,49 @@ function studio_artists_post_type() { // Hook into the 'init' action add_action( 'init', 'studio_artists_post_type', 0 ); +/* Event post type */ +function studio_events_post_type() { + $labels = array( + 'name' => _x( 'Events', 'Post Type General Name', 'studio' ), + 'singular_name' => _x( 'Event', 'Post Type Singular Name', 'studio' ), + 'menu_name' => __( 'Event', 'studio' ), + 'parent_item_colon' => __( 'Parent Event:', 'studio' ), + 'all_items' => __( 'All Events', 'studio' ), + 'view_item' => __( 'View Event', 'studio' ), + 'add_new_item' => __( 'Add New Event', 'studio' ), + 'add_new' => __( 'New Event', 'studio' ), + 'edit_item' => __( 'Edit Event', 'studio' ), + 'update_item' => __( 'Update Event', 'studio' ), + 'search_items' => __( 'Search Events', 'studio' ), + 'not_found' => __( 'No Events found', 'studio' ), + 'not_found_in_trash' => __( 'No Events found in Trash', 'studio' ), + ); + + $args = array( + 'label' => __( 'event', 'studio' ), + 'description' => __( 'Event information pagews', 'studio' ), + 'labels' => $labels, + 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), + 'taxonomies' => array( 'post_tag' ), + 'hierarchical' => false, + 'public' => true, + 'show_ui' => true, + 'show_in_menu' => true, + 'show_in_nav_menus' => true, + 'show_in_admin_bar' => true, + 'menu_position' => 5, + //'menu_icon' => '', + 'can_export' => true, + 'has_archive' => true, + 'exclude_from_search' => false, + 'publicly_queryable' => true, + 'capability_type' => 'page', + ); + + register_post_type( 'event', $args ); +} + +// Hook into the 'init' action +add_action( 'init', 'studio_events_post_type', 0 ); + ?> diff --git a/wp-content/themes/studio13/template-events.php b/wp-content/themes/studio13/template-events.php new file mode 100644 index 0000000..eca477b --- /dev/null +++ b/wp-content/themes/studio13/template-events.php @@ -0,0 +1,44 @@ + + +
+