Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

MNM Developments

if ( ! function_exists('development_post_type') ) {

// Register Custom Post Type
function development_post_type() {

	$labels = array(
		'name'                  => _x( 'Developments', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Development', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Developments', 'text_domain' ),
		'name_admin_bar'        => __( 'Development', 'text_domain' ),
		'parent_item_colon'     => __( 'Parent Development:', 'text_domain' ),
		'all_items'             => __( 'All Developments', 'text_domain' ),
		'add_new_item'          => __( 'Add Development', 'text_domain' ),
		'add_new'               => __( 'Add New', 'text_domain' ),
		'new_item'              => __( 'New Development', 'text_domain' ),
		'edit_item'             => __( 'Edit Development', 'text_domain' ),
		'update_item'           => __( 'Update Development', 'text_domain' ),
		'view_item'             => __( 'View Development', 'text_domain' ),
		'search_items'          => __( 'Search Development', 'text_domain' ),
		'not_found'             => __( 'Not found', 'text_domain' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'text_domain' ),
		'items_list'            => __( 'Developments list', 'text_domain' ),
		'items_list_navigation' => __( 'Developments list navigation', 'text_domain' ),
		'filter_items_list'     => __( 'Filter developments list', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                  => 'developments',
		'with_front'            => false,
		'pages'                 => true,
		'feeds'                 => true,
	);
	$args = array(
		'label'                 => __( 'Development', 'text_domain' ),
		'description'           => __( 'Development', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', ),
		'taxonomies'            => array( 'tags' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 20,
		'menu_icon'             => 'dashicons-store',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'rewrite'               => $rewrite,
		'capability_type'       => 'post',
	);
	register_post_type( 'development', $args );

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

}