add_action( 'init', 'register_cpt_admission' );
function register_cpt_admission() {
$labels = array(
'name' => _x( 'Admission', 'admission' ),
'singular_name' => _x( 'Admission', 'admission' ),
'add_new' => _x( 'Add New', 'admission' ),
'add_new_item' => _x( 'Add New Admission', 'admission' ),
'edit_item' => _x( 'Edit Admission', 'admission' ),
'new_item' => _x( 'New Admission', 'admission' ),
'view_item' => _x( 'View Admission', 'admission' ),
'search_items' => _x( 'Search Admission', 'admission' ),
'not_found' => _x( 'No admission found', 'admission' ),
'not_found_in_trash' => _x( 'No admission found in Trash', 'admission' ),
'parent_item_colon' => _x( 'Parent Admission:', 'admission' ),
'menu_name' => _x( 'Admission', 'admission' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'description' => 'Admission NEWS',
'supports' => array( 'title', 'editor' ),
'taxonomies' => array( 'category', 'post_tag', 'Courses' ),
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'has_archive' => true,
'query_var' => true,
'can_export' => true,
'rewrite' => true,
'capability_type' => 'post'
);
register_post_type( 'admission', $args );
}
There are currently 1 users browsing this thread. (0 members and 1 guests)