Projekt
För Arkitektblå
if ( ! function_exists('cc_post_type') ) {
// Register Custom Post Type
function cc_post_type() {
$labels = array(
'name' => _x( 'Projekt', 'Post Type General Name', 'Projekts' ),
'singular_name' => _x( 'Projekt', 'Post Type Singular Name', 'Projekts' ),
'menu_name' => __( 'Projekt', 'Projekts' ),
'name_admin_bar' => __( 'Projekt', 'Projekts' ),
'parent_item_colon' => __( 'Parent item:', 'Projekts' ),
'all_items' => __( 'Alla projekt', 'Projekts' ),
'add_new_item' => __( 'Lägg till nytt projekt', 'Projekts' ),
'add_new' => __( 'Lägg till nytt', 'Projekts' ),
'new_item' => __( 'Nytt projekt', 'Projekts' ),
'edit_item' => __( 'Redigera projekt', 'Projekts' ),
'update_item' => __( 'Uppdatera projekt', 'Projekts' ),
'view_item' => __( 'Visa projekt', 'Projekts' ),
'search_items' => __( 'Sök projekt', 'Projekts' ),
'not_found' => __( 'Kunde inte hittas', 'Projekts' ),
'not_found_in_trash' => __( 'Kunde inte hittas i papperskorgen', 'Projekts' ),
);
$args = array(
'label' => __( 'project', 'Projekts' ),
'description' => __( 'Projekt', 'Projekts' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields', 'page-attributes', ),
'taxonomies' => array( 'project_category', 'project_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 15,
'menu_icon' => 'dashicons-format-gallery',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'project', $args );
}
// Hook into the 'init' action
add_action( 'init', 'cc_post_type', 0 );
}