{"id":9041609,"date":"2017-04-18T16:27:11","date_gmt":"2017-04-18T16:27:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-post-type-archive-set-static-page\/"},"modified":"2017-04-18T17:05:51","modified_gmt":"2017-04-18T17:05:51","slug":"custom-post-type-archive-set-static-page","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-post-type-archive-set-static-page\/","title":{"rendered":"Custom post type Archive : Set Static Page"},"content":{"rendered":"<p>Hi everyone,<\/p>\n<p>I created a custom post type called &#8220;book&#8221;. I would like the archive page of &#8220;book&#8221; to be manageable like the archive of &#8220;post&#8221; (to be able to use Advanced Custom Fields, Yoast SEO, etc).<\/p>\n<p>Is it possible to add a field in the &#8220;Reading&#8221; options (or use a PHP function)? (See screenshots)<br \/>\nI want to know how to have a page in wp-admin relative to archive-{post_type}.php. This page would be accessible when I&#8217;m on the archive page by clicking on the Edit Page button in the #wpadminbar.<\/p>\n<p>Note: Usually, I use a page template, but this pause problems when the slug of the page is the same as my custom post type (especially when there is a pagination as in my case).<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/i.stack.imgur.com\/Z1aKz.jpg?ssl=1\" alt=\"\" \/><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/i.stack.imgur.com\/h4XZs.jpg?ssl=1\" alt=\"\" \/><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/i.stack.imgur.com\/j6Gfo.jpg?ssl=1\" alt=\"\" \/><\/p>\n<p>Thanks in advance!<\/p>\n","protected":false},"template":"","class_list":["post-9041609","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9041609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9041609\/revisions"}],"predecessor-version":[{"id":9041618,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9041609\/revisions\/9041618"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9041609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}