visus hp fotky
// Register Custom Post Type
function herounit_post_type() {
$labels = array(
'name' => _x( 'Fotografie', 'Post Type General Name', 'visus2014' ),
'singular_name' => _x( 'Fotografie', 'Post Type Singular Name', 'visus2014' ),
'menu_name' => __( 'Fotografie na homepage', 'visus2014' ),
'parent_item_colon' => __( 'Nadřaz. klient', 'visus2014' ),
'all_items' => __( 'Všechny fotografie', 'visus2014' ),
'view_item' => __( 'Zobrazit fotografii', 'visus2014' ),
'add_new_item' => __( 'Přidat novou fotografii', 'visus2014' ),
'add_new' => __( 'Přidat novou', 'visus2014' ),
'edit_item' => __( 'Upravit fotografii', 'visus2014' ),
'update_item' => __( 'Aktualizovat fotografii', 'visus2014' ),
'search_items' => __( 'Hledat fotografii', 'visus2014' ),
'not_found' => __( 'Nenalezeno', 'visus2014' ),
'not_found_in_trash' => __( 'Nenalezeno v koši', 'visus2014' ),
);
$args = array(
'label' => __( 'models', 'visus2014' ),
'description' => __( 'Fotografie na homepage', 'visus2014' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', ),
'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' => 'dashicons-universal-access-alt',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'models', $args );
}
// Hook into the 'init' action
add_action( 'init', 'herounit_post_type', 0 );