Publications
Publications as
if ( ! function_exists('publication_type') ) { // Register Custom Post Type function publication_type() { $labels = array( 'name' => _x( 'Publications', 'Post Type General Name', 'X' ), 'singular_name' => _x( 'Publication', 'Post Type Singular Name', 'X' ), 'menu_name' => __( 'Publications', 'X' ), 'parent_item_colon' => __( 'Parent publication:', 'X' ), 'all_items' => __( 'All Publications', 'X' ), 'view_item' => __( 'View publication', 'X' ), 'add_new_item' => __( 'Add New Publication', 'X' ), 'add_new' => __( 'Add New', 'X' ), 'edit_item' => __( 'Edit Publication', 'X' ), 'update_item' => __( 'Update Publication', 'X' ), 'search_items' => __( 'Search Publications', 'X' ), 'not_found' => __( 'Not found', 'X' ), 'not_found_in_trash' => __( 'Not found in Trash', 'X' ), ); $rewrite = array( 'slug' => 'publications', 'with_front' => true, 'pages' => false, 'feeds' => true, ); $args = array( 'label' => __( 'publication', 'X' ), 'description' => __( 'Publications as articles, thesis or dissertation', 'X' ), 'labels' => $labels, 'supports' => array( 'title', 'custom-fields', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, '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, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'publication', $args ); } // Hook into the 'init' action add_action( 'init', 'publication_type', 0 ); }