Structure fixes and additions #1

Merged
plazmonii merged 11 commits from structure-fixes-and-additions into master 2014-10-05 20:21:53 +03:00
Showing only changes of commit 08f31b268d - Show all commits

View File

@ -81,7 +81,7 @@ function create_sponsors_posttype() {
$labels = array( $labels = array(
'name' => __( 'Sponsors' ), 'name' => __( 'Sponsors' ),
'singular_name' => __( 'Sponsor' ), 'singular_name' => __( 'Sponsor' ),
'menu_nam' => __( 'Sponsors'), 'menu_name' => __( 'Sponsors'),
'all_items' => __( 'All Sponsors' ), 'all_items' => __( 'All Sponsors' ),
'view_item' => __( 'View Sponsor' ), 'view_item' => __( 'View Sponsor' ),
'add_new_item' => __( 'Add New Sponsor' ), 'add_new_item' => __( 'Add New Sponsor' ),
@ -118,6 +118,50 @@ function create_sponsors_posttype() {
add_action( 'init', create_sponsors_posttype ); add_action( 'init', create_sponsors_posttype );
# Create a custom post type for Speakers
function create_speakers_posttype() {
$labels = array(
'name' => __( 'Speakers' ),
'singular_name' => __( 'Speaker' ),
'menu_name' => __( 'Speakers'),
'all_items' => __( 'All Speakers' ),
'view_item' => __( 'View Speaker' ),
'add_new_item' => __( 'Add New Speaker' ),
'add_new' => __( 'Add New' ),
'edit_item' => __( 'Edit Speaker' ),
'update_item' => __( 'Update Speaker' ),
'search_item' => __( 'Search Speaker' ),
'not_found' => __( 'Not Found' ),
'not_found_in_trash' => __( 'Not Found In Trash' ),
);
$args = array(
'label' => __( 'speakers' ),
'description' => __( 'Speakers on OpenFest' ),
'labels' => $labels,
'supports' => array( 'title', 'excerpt', 'thumbnail', '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' => 6,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'speakers', $args );
}
add_action( 'init', create_speakers_posttype );
# Create a custom post type for Tranportation # Create a custom post type for Tranportation
function transportation_posttype() { function transportation_posttype() {