ml-mag-cpt
mag custom post type
// Register Custom Post Type function magazine_post_type() { $labels = array( 'name' => 'Magazine Articles', 'singular_name' => 'Magazine Article', 'menu_name' => 'Magazine Articles', 'name_admin_bar' => 'Magazine Article', 'archives' => 'Article Archives', 'parent_item_colon' => 'Parent Article:', 'all_items' => 'All Articles', 'add_new_item' => 'Add New Article', 'add_new' => 'Add New Article', 'new_item' => 'New Article', 'edit_item' => 'Edit Article', 'update_item' => 'Update Article', 'view_item' => 'View Article', 'search_items' => 'Search Article', 'not_found' => 'Article not found', 'not_found_in_trash' => 'Article not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into article', 'uploaded_to_this_item' => 'Uploaded to this article', 'items_list' => 'Article list', 'items_list_navigation' => 'Article list navigation', 'filter_items_list' => 'Filter articles list', ); $args = array( 'label' => 'Magazine Article', 'description' => 'Marinalife Magazine article posts', 'labels' => $labels, 'supports' => array( 'comments', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'magazine', $args ); } add_action( 'init', 'magazine_post_type', 0 );