Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ספרים

// Register Custom Post Type
function custom_post_type_books() {

	$labels = array(
		'name'                => 'ספרים',
		'singular_name'       => 'ספר',
		'menu_name'           => 'ספר',
		'name_admin_bar'      => 'ספר',
		'parent_item_colon'   => 'אב ספר',
		'all_items'           => 'כל הספרים',
		'add_new_item'        => 'הוסף ספר',
		'add_new'             => 'הוסף ספר',
		'new_item'            => 'הוסף ספר',
		'edit_item'           => 'ערוך ספר',
		'update_item'         => 'עדכן ספר',
		'view_item'           => 'ראה ספר',
		'search_items'        => 'חפש ספר',
		'not_found'           => 'לא נמצא ספר',
		'not_found_in_trash'  => 'לא נמצא ספר באשפה',
	);
	$args = array(
		'label'               => 'ספר',
		'description'         => 'פוסט מסוג ספר',
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'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( 'ספרים', $args );

}
add_action( 'init', 'custom_post_type_books', 0 );