Konsulent
// Register Custom Post Type
function konsulent_init() {
$labels = array(
'name' => _x( 'konsulents', 'Post Type General Name', 'GT' ),
'singular_name' => _x( 'konsulent', 'Post Type Singular Name', 'GT' ),
'menu_name' => __( 'Konsulent', 'GT' ),
'parent_item_colon' => __( 'Parent Konsulent:', 'GT' ),
'all_items' => __( 'All Konsulent', 'GT' ),
'view_item' => __( 'View Konsulent', 'GT' ),
'add_new_item' => __( 'Add New Konsulent', 'GT' ),
'add_new' => __( 'Add New', 'GT' ),
'edit_item' => __( 'Edit Konsulent', 'GT' ),
'update_item' => __( 'Update Konsulent', 'GT' ),
'search_items' => __( 'Search Konsulent', 'GT' ),
'not_found' => __( 'Not found', 'GT' ),
'not_found_in_trash' => __( 'Not found in Trash', 'GT' ),
);
$rewrite = array(
'slug' => 'konsulent',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'konsulent', 'GT' ),
'description' => __( 'Konsulent', 'GT' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', ),
'taxonomies' => array( 'post_tag', ' konsulentgroup' ),
'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,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'konsulent', $args );
}
// Hook into the 'init' action
add_action( 'init', 'konsulent_init', 0 );