{"id":670,"date":"2012-03-31T11:32:18","date_gmt":"2012-03-31T11:32:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-type-archive-links\/"},"modified":"2015-04-11T23:58:07","modified_gmt":"2015-04-11T23:58:07","slug":"post-type-archive-links","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/post-type-archive-links\/","author":8483444,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"1.3.1","tested":"4.1.42","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"WordPress Post Type Archive Links","header_author":"Stephen Harris","header_description":"","assets_banners_color":"","last_updated":"2017-11-28 07:53:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/stephenharris\/WordPress-Post-Type-Archive-Links","header_author_uri":"https:\/\/github.com\/stephenharris\/","rating":5,"author_block_rating":0,"active_installs":10000,"downloads":207255,"num_ratings":25,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"24"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.2","1.3.0","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1776661","resolution":"2","location":"plugin","width":1722,"height":1240},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1776661","resolution":"3","location":"plugin","width":1666,"height":646},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1776661","resolution":"1","location":"plugin","width":1734,"height":1032}},"screenshots":{"1":"Custom post types admin menu metabox","2":"Custom post types added to your menu","3":"Custom post type 'Clients' in front-end menu with WordPress menu classes and current item styles"}},"plugin_section":[],"plugin_tags":[3621,50331,2205,1753,50330],"plugin_category":[43],"plugin_contributors":[77871,78363,77704,78362],"plugin_business_model":[],"class_list":["post-670","plugin","type-plugin","status-closed","hentry","plugin_tags-archives","plugin_tags-menu-link","plugin_tags-metabox","plugin_tags-navigation","plugin_tags-post-type-archives","plugin_category-customization","plugin_contributors-f-j-kaiser","plugin_contributors-giuseppemazzapica-1","plugin_contributors-ryancurban","plugin_contributors-stephenharris","plugin_committers-stephenh1988","plugin_committers-stephenharris"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-type-archive-links.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-type-archive-links\/trunk\/screenshot-1.png?rev=1776661","caption":"Custom post types admin menu metabox"},{"src":"https:\/\/ps.w.org\/post-type-archive-links\/trunk\/screenshot-2.png?rev=1776661","caption":"Custom post types added to your menu"},{"src":"https:\/\/ps.w.org\/post-type-archive-links\/trunk\/screenshot-3.png?rev=1776661","caption":"Custom post type 'Clients' in front-end menu with WordPress menu classes and current item styles"}],"raw_content":"<!--section=description-->\n<p>Post Type Archive Link creates a metabox on the Appearance &gt; Menu admin page. \nThis lists your custom post types and allows you to add links to each archive page in your WordPress menus.<\/p>\n\n<p>The plug-in uses WordPress' default menu classes for current pages, current page parent and current page ancestor.<\/p>\n\n<p>By default all post types with archives (and not registered by core) are available for adding to your menu. \nYou can forcibly revent a particlar post type from appearing using the <code>show_{$posttype}_archive_in_nav_menus<\/code> hook.<\/p>\n\n<!--section=installation-->\n<p>Installation is standard and straight forward.<\/p>\n\n<ol>\n<li>Upload <code>WordPress-Post-Type-Archive-Links<\/code> folder (and all it's contents!) to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>The metabox will appear at the bottom of your Appearance &gt; Menu<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>Installation is standard and straight forward.<\/p>\n\n<ol>\n<li>Upload <code>WordPress-Post-Type-Archive-Links<\/code> folder (and all it's contents!) to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>The metabox will appear at the bottom of your Appearance &gt; Menu<\/li>\n<\/ol><\/dd>\n<dt>I can't see in the 'post type' metabox on the Apperance &gt; Menus screen<\/dt>\n<dd><p>View the \"screen options\" (top right), and ensure that \"Post Type Archives\" is checked.<\/p><\/dd>\n<dt>Why are some post types missing?<\/dt>\n<dd><p>The metabox will only list custom post types registered with non-falsey <code>has_archive<\/code>, <code>publicly_queryable<\/code> or <code>show_in_vav_menus<\/code>.<\/p>\n\n<p>CPTs having true <code>has_archive' but false<\/code>publicly_queryable<code>and\/or<\/code>show_in_vav_menus<code>can be shown using<\/code>show_{$cpt_slug}_archive_in_nav_menus` filter hook.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.1 - 12th April 2015<\/h4>\n\n<ul>\n<li>Fixes incomptability with PHP 5.3 and older.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Make submit button available for translation. Thanks to <a href=\"https:\/\/github.com\/antwortzeit\">@antwortzeit<\/a>.<\/li>\n<li>Removed hooks from constructor, allowed plugin disabling: removing all hooks and text domain<\/li>\n<li>Introduced \"post_type_archive_links\" filter hook to get an instance of plugin class<\/li>\n<li>Hide CPTs having 'has_archive' true, but 'publicly_queryable' and\/or 'show_in_vav_menus' set to false<\/li>\n<li>Introduced \"show_{$cpt_slug}_archive_in_nav_menus\" filter to force CPTs be added on metabox<\/li>\n<li>Show \"No items.\" when there are no CPTs available<\/li>\n<li>Tested up to 4.0<\/li>\n<li>Added Italian language. Thanks to <a href=\"http:\/\/gm.zoomlab.it\">@giuseppe.mazzapica<\/a>.<\/li>\n<li>Updated readme<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Use has_archive rather than public. <a href=\"https:\/\/github.com\/stephenharris\/WordPress-Post-Type-Archive-Links\/issues\/13\">See #13<\/a><\/li>\n<li>Fixes bug where \"disabled\" is printed if no menu has been created.<\/li>\n<li>Tested up to 3.7.1<\/li>\n<li>Added German language. Thanks to <a href=\"https:\/\/github.com\/mcguffin\">@mcguffin<\/a>.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed a couple of notices that displayed with debug on<\/li>\n<li>Better maintainability (avoid touching JS files)<\/li>\n<li>Static init now runs during <code>plugins_loaded<\/code> hook<\/li>\n<li>Code cleanup and safer names<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed enqueue bug<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Added plug-in<\/li>\n<\/ul>","raw_excerpt":"Creates a metabox to the Appearance &gt; Menu page to add custom post type archive links","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=670"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/stephenh1988"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=670"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=670"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=670"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=670"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=670"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}