Press Releases
Custom Post Type for Press Releases
// Register Custom Post Type function press_releases() { $labels = array( 'name' => _x( 'Press Releases', 'Post Type General Name', 'o2dca_framework' ), 'singular_name' => _x( 'Press Release', 'Post Type Singular Name', 'o2dca_framework' ), 'menu_name' => __( 'Press Releases', 'o2dca_framework' ), 'name_admin_bar' => __( 'Press Release', 'o2dca_framework' ), 'archives' => __( 'Press Release Archives', 'o2dca_framework' ), 'attributes' => __( 'Press Release Attributes', 'o2dca_framework' ), 'parent_item_colon' => __( 'Parent Press Release:', 'o2dca_framework' ), 'all_items' => __( 'All Press Releases', 'o2dca_framework' ), 'add_new_item' => __( 'Add New Press Release', 'o2dca_framework' ), 'add_new' => __( 'Add New Press Release', 'o2dca_framework' ), 'new_item' => __( 'New Press Release', 'o2dca_framework' ), 'edit_item' => __( 'Edit Press Release', 'o2dca_framework' ), 'update_item' => __( 'Update Press Release', 'o2dca_framework' ), 'view_item' => __( 'View Press Release', 'o2dca_framework' ), 'view_items' => __( 'View Press Releases', 'o2dca_framework' ), 'search_items' => __( 'Search Press Release', 'o2dca_framework' ), 'not_found' => __( 'Not found', 'o2dca_framework' ), 'not_found_in_trash' => __( 'Not found in Trash', 'o2dca_framework' ), 'featured_image' => __( 'Featured Image', 'o2dca_framework' ), 'set_featured_image' => __( 'Set featured image', 'o2dca_framework' ), 'remove_featured_image' => __( 'Remove featured image', 'o2dca_framework' ), 'use_featured_image' => __( 'Use as featured image', 'o2dca_framework' ), 'insert_into_item' => __( 'Insert into Press Release', 'o2dca_framework' ), 'uploaded_to_this_item' => __( 'Uploaded to this Press Release', 'o2dca_framework' ), 'items_list' => __( 'Press Releases list', 'o2dca_framework' ), 'items_list_navigation' => __( 'Press Releases list navigation', 'o2dca_framework' ), 'filter_items_list' => __( 'Filter Press Releases list', 'o2dca_framework' ), ); $args = array( 'label' => __( 'Press Release', 'o2dca_framework' ), 'description' => __( 'Press Release Description', 'o2dca_framework' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-site-alt', 'show_in_admin_bar' => false, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'press_releases', $args ); } add_action( 'init', 'press_releases', 0 );