Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom Post Type Works

Custom Post Type Works for FPS

// Register Custom Post Type
function works_post_type() {

	$labels = array(
		'name'                => _x( 'Karriere', 'Post Type General Name', 'fps' ),
		'singular_name'       => _x( 'Stellenangebot', 'Post Type Singular Name', 'fps' ),
		'menu_name'           => __( 'Karriere', 'fps' ),
		'parent_item_colon'   => __( '√úbergeordnetes Stellenangebot:', 'fps' ),
		'all_items'           => __( 'Alle Stellenangebote', 'fps' ),
		'view_item'           => __( 'Stellenangebot anzeigen', 'fps' ),
		'add_new_item'        => __( 'Neues Stellenangebot anlegen', 'fps' ),
		'add_new'             => __( 'Stellenangebot anlegen', 'fps' ),
		'edit_item'           => __( 'Stellenangebot bearbeiten', 'fps' ),
		'update_item'         => __( 'Stellenangebot aktualisieren', 'fps' ),
		'search_items'        => __( 'Stellenangebot suchen', 'fps' ),
		'not_found'           => __( 'Stellenangebot nicht gefunden', 'fps' ),
		'not_found_in_trash'  => __( 'Kein Stellenangebot im Papierkorb', 'fps' ),
	);
	$args = array(
		'label'               => __( 'Works', 'fps' ),
		'description'         => __( 'Custom Post Type for Works', 'fps' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'post-formats', ),
		'taxonomies'          => array( 'category', 'post_tag' ),
		'hierarchical'        => true,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'Works', $args );

}

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