{"action":"closed","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1861","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1861/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1861/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1861/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/1861","id":53380250,"number":1861,"title":"Cannot set title & description of CPT archive","user":{"login":"xeeeveee","id":2545022,"avatar_url":"https://avatars.githubusercontent.com/u/2545022?v=3","gravatar_id":"","url":"https://api.github.com/users/xeeeveee","html_url":"https://github.com/xeeeveee","followers_url":"https://api.github.com/users/xeeeveee/followers","following_url":"https://api.github.com/users/xeeeveee/following{/other_user}","gists_url":"https://api.github.com/users/xeeeveee/gists{/gist_id}","starred_url":"https://api.github.com/users/xeeeveee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xeeeveee/subscriptions","organizations_url":"https://api.github.com/users/xeeeveee/orgs","repos_url":"https://api.github.com/users/xeeeveee/repos","events_url":"https://api.github.com/users/xeeeveee/events{/privacy}","received_events_url":"https://api.github.com/users/xeeeveee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/pivotal","name":"pivotal","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-05T09:58:34Z","updated_at":"2015-01-06T21:10:54Z","closed_at":"2015-01-06T21:10:54Z","body":"Post types registered with the \"public\" property set to false do not appear in the admin menu \"Titles & meta\" under the \"Custom Post Type Archives\" section.\r\n\r\nSetting a post types public property to false does not definitively remove the archive page that post type, this is dependent on other properties.\r\n\r\nRegistering the below custom post type will result in a post type that has an archive page, but no single pages - Custom post types registered like the below do not appear in the \"Title & Metas -> Custom Post Type Archives\" section because the query specifies that the public property must be true.\r\n\r\n````\r\n$labels = array(\r\n    'name' \t=> _x( 'awards', 'post type general name', 'text-domain' ),\r\n    'singular_name' => _x( 'award', 'post type singular name', 'text-domain' ),\r\n    'menu_name' => _x( 'Awards', 'admin menu', 'text-domain' ),\r\n    'add_new' => _x( 'Add New', 'award', 'text-domain' ),\r\n    'add_new_item' => __( 'Add New award', 'text-domain' ),\r\n    'edit_item' => __( 'Edit award', 'text-domain' ),\r\n    'new_item' => __( 'New award', 'text-domain' ),\r\n    'all_items' => __( 'All awards', 'text-domain' ),\r\n    'view_item' => __( 'View award', 'text-domain' ),\r\n    'search_items' => __( 'Search awards', 'text-domain' ),\r\n    'not_found' => __( 'No awards found', 'text-domain' ),\r\n    'not_found_in_trash' => __( 'No awards found in Trash', 'text-domain' ),\r\n    'parent_item_colon' => __( 'Parent awards:', 'text-domain' ),\r\n);\r\n\r\n$args = array(\r\n    'labels' => $labels,\r\n    'public' => false,\r\n    'publicly_queryable' => true,\r\n    'show_ui' => true,\r\n    'show_in_menu' => true,\r\n    'query_var' => true,\r\n    'capability_type' => 'post',\r\n    'rewrite' => array('slug' => 'awards'),\r\n    'map_meta_cap' => true,\r\n    'has_archive' => true,\r\n    'hierarchical' => true,\r\n    'menu_position' => null,\r\n    'supports' => array('title')\r\n);\r\n\r\nregister_post_type( 'awards', $args );\r\n````\r\n"}}