Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Certyfikaty

// Register Custom Post Type
function custom_post_type_certyfikaty() {

	$labels = array(
		'name'                  => 'Certyfikaty',
		'singular_name'         => 'Certyfikat',
		'menu_name'             => 'Certyfikaty',
		'name_admin_bar'        => 'Certyfikaty',
		'archives'              => '',
		'attributes'            => '',
		'parent_item_colon'     => '',
		'all_items'             => 'Wszystkie Certyfikaty',
		'add_new_item'          => 'Dodaj nowy certyfikat',
		'add_new'               => 'Dodaj nowy',
		'new_item'              => 'Nowy certyfikat',
		'edit_item'             => 'Edytuj certyfikat',
		'update_item'           => 'Zaktualizuj certyfikat',
		'view_item'             => 'Zobacz certyfikat',
		'view_items'            => 'Zobacz certyfikaty',
		'search_items'          => 'Szukaj certyfikatu',
		'not_found'             => '',
		'not_found_in_trash'    => '',
		'featured_image'        => '',
		'set_featured_image'    => '',
		'remove_featured_image' => '',
		'use_featured_image'    => '',
		'insert_into_item'      => '',
		'uploaded_to_this_item' => '',
		'items_list'            => '',
		'items_list_navigation' => '',
		'filter_items_list'     => '',
	);
	$args = array(
		'label'                 => 'Certyfikat',
		'description'           => 'Certyfikaty',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor' ),
		'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( 'certyfikaty', $args );

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