Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

KFD szkolenia

// Register Custom Post Type
function register_trainings() {

	$labels = array(
		'name'                => _x( 'Szkolenia', 'Post Type General Name', 'kfd' ),
		'singular_name'       => _x( 'Szkolenie', 'Post Type Singular Name', 'kfd' ),
		'menu_name'           => __( 'Szkolenie', 'kfd' ),
		'parent_item_colon'   => __( 'Rodzic:', 'kfd' ),
		'all_items'           => __( 'Wszystkie elementy', 'kfd' ),
		'view_item'           => __( 'Zobacz szkolenie', 'kfd' ),
		'add_new_item'        => __( 'Dodaj nowe szkolenie', 'kfd' ),
		'add_new'             => __( 'Dodaj', 'kfd' ),
		'edit_item'           => __( 'Edytuj szkolenie', 'kfd' ),
		'update_item'         => __( 'Zaktualizuj szkolenie', 'kfd' ),
		'search_items'        => __( 'Wyszukaj szkolenie', 'kfd' ),
		'not_found'           => __( 'Nie znaleziono', 'kfd' ),
		'not_found_in_trash'  => __( 'Nie znaleziono w koszu', 'kfd' ),
	);
	$args = array(
		'label'               => __( 'training', 'kfd' ),
		'description'         => __( 'Informacje o szkoleniach', 'kfd' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', 'custom-fields', ),
		'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-welcome-learn-more',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'training', $args );

}

// Hook into the 'init' action
add_action( 'init', 'register_trainings', 0 );