{"id":9586,"date":"2010-06-30T22:08:48","date_gmt":"2010-06-30T22:08:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-custom-post-type-archives\/"},"modified":"2011-03-25T21:59:52","modified_gmt":"2011-03-25T21:59:52","slug":"simple-custom-post-type-archives","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/simple-custom-post-type-archives\/","author":1973938,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9.3","stable_tag":"0.9.3","tested":"3.0.5","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Simple Custom Post Type Archives","header_author":"Jake Goldman (10up)","header_description":"","assets_banners_color":"","last_updated":"2011-03-25 21:59:52","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.get10up.com\/plugins\/simple-custom-post-type-archives-wordpress\/","header_plugin_uri":"http:\/\/www.get10up.com\/plugins\/simple-custom-post-type-archives-wordpress\/","header_author_uri":"http:\/\/www.get10up.com","rating":0,"author_block_rating":0,"active_installs":200,"downloads":18138,"num_ratings":0,"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":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.8","0.8.5","0.9","0.9.2","0.9.3"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3621,23403,1487,939,56545],"plugin_category":[59],"plugin_contributors":[77760,77762],"plugin_business_model":[],"class_list":["post-9586","plugin","type-plugin","status-closed","hentry","plugin_tags-archives","plugin_tags-conditionals","plugin_tags-custom-post-types","plugin_tags-permalinks","plugin_tags-template-files","plugin_category-utilities-and-tools","plugin_contributors-jakemgold","plugin_contributors-thinkoomph","plugin_committers-jakemgold"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-custom-post-type-archives.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds friendly permalink support, template files, and a conditional for public, non-hierarchical custom post types.<\/p>\n\n<p>WordPress 3.0 opens the door for entirely new content management possibilities with custom post types. As awesome as it is, the first version to implement custom post types is missing a few things. This plug-in patches one of those holes: templates and friendly permalinks that enable \"archives\" for custom post types, much the like the \"blog home\" is an archive for all \"post\" post types.<\/p>\n\n<p>This plug-in will only add custom post type archives for non-hierarchical (post-like), public custom post types with a \"slug\" or permalink.<\/p>\n\n<p>For example, suppose you have a custom post type \"Movies\". WordPress 3.0 takes care of permalinks for individual movie content, for example, http:\/\/yourblog.com\/movies\/casa-blanca\/. You might think you could get an archive of all recently added movies (just like the blog home is an archive of all recently added posts) by going to http:\/\/yourblog.com\/movies\/, but this isn't supported out of the gate. You can do it without permalinks by going to http:\/\/yourblog.com\/?post_type=movies, but even then, you're forced to use the index.php template file in your theme. This plug-in enables archive permalinks (yourblog.com\/movies), adds two new template files in the hierarchy (i.e. type-movies.php and type.php), and adds a new \"is_custom_post_type_archive\" conditional you can use in your theme!<\/p>\n\n<ol>\n<li>Adds support for custom post type archive permalinks, i.e. <code>yourblog.com\/(custom-post-type-name)<\/code> - including paging (\/page\/2\/) and feedS (\/feed\/)<\/li>\n<li>Adds two new template files to the hierarchy, <code>type-(custom-post-type-name).php<\/code> (or post type slug) and <code>type.php<\/code><\/li>\n<li>Adds new body classes to custom post type archives, <code>custom-post-type-archive<\/code> and <code>custom-post-type-(post-type-name)-archive<\/code><\/li>\n<li>Fixes the <code>is_home<\/code> conditional check on custom post type archives (incorrectly reports true by default)<\/li>\n<li>Adds a new conditional, <code>is_custom_post_type_archive<\/code> for use in your themes: can optionally be passed name of post type<\/li>\n<li>Fixes the wp_title output on custom post type archives to show the custom type's label<\/li>\n<li>Automatically adds feed links for custom post type archives when on a custom archive or singular custom post type if \"automatic feed links\" is enabled in your theme<\/li>\n<\/ol>\n\n<p>What <em>didn't<\/em> make it in this pre-1.0 release:<\/p>\n\n<ol>\n<li>New navigation menu widget for easily adding custom post type archives to navigation<\/li>\n<\/ol>\n\n<!--section=installation-->\n<ol>\n<li>Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted\nfolder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create new <code>type-(custom-post-type-name).php<\/code> (may also use slug) and \/ or <code>type.php<\/code> template files in theme, if desired<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why aren't my new custom post type archive permalinks working?<\/dt>\n<dd><p>First, make certain the custom post type is supported by the plug-in. This plug-in will only add archive permalink for non-hierarchical, public custom post types that have a \"slug.\" There's plenty of documentation on register_post_type if you need help verifying that.<\/p>\n\n<p>If you're certain it's a supported post type archive, try going to Settings &gt; Permalinks, and just hit \"save\" to refresh the permalink settings and cache.<\/p>\n\n<p>If that doesn't work, try getting in touch on our support page.<\/p><\/dd>\n<dt>How do I add a navigation element for my custom post type archive?<\/dt>\n<dd><p>Manually. Any number of ways, like a \"Custom Links\" menu item using the new nav menus, manually adding a link in your theme, or (if you're clever) even fetching the post type objects that meet the requirements using some API jujitsu.<\/p>\n\n<p>I'm going to try and add a new meta box to the \"Menus\" manager that allows easy adding of custom post types. I got about 75% of the way there already, but there's a lot going on in that API that I still have to wrap my head around!<\/p>\n\n<p>In the mean time, consider using the body class as a work around.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.9.3<\/h4>\n\n<ul>\n<li>Support for post queries with multiple post types (fixes illegal offset error)<\/li>\n<li>Allows passing post type via array in a custom query (another potential illegal offset cause)<\/li>\n<li>Better protection against passing invalid post types into functions<\/li>\n<li>Special filters and post query properties now properly registered upon query, not template redirection<\/li>\n<li>Fewer redundant checks in code \/ general optimizations<\/li>\n<\/ul>\n\n<h4>0.9.2<\/h4>\n\n<ul>\n<li>Automatically outputs custom post type archive feed links if \"automatic feed links\" is enabled in your theme<\/li>\n<li>Further improved validation \/ conditional checks to avoid very rare warnings in debug mode<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Full feed (rss \/ rss2 \/ etc) support for custom post types via permalink, i.e. <code>\/(post-type-name)\/feed\/<\/code><\/li>\n<li>Better validation in code - no more warnings when debug is turned on<\/li>\n<li>Supports <code>type-(slug).php<\/code> in addition to <code>type-(name).php<\/code> template files (confused many users)<\/li>\n<li><code>is_custom_post_type_archive<\/code> function can now be passed a name of a post type to check against<\/li>\n<\/ul>\n\n<h4>0.8.5<\/h4>\n\n<ul>\n<li>Enhancement: full support for child themes (proper calling of new template files via <code>locate_template<\/code> function)<\/li>\n<li>Bug fix: looser conditional matching of custom post type properties (should fix many \"just doesn't work\" cases)<\/li>\n<li>Bug fix: proper filtering \/ handling of wp_title override (respects separator, separator location)<\/li>\n<\/ul>","raw_excerpt":"Adds friendly permalink support, template files, and a new conditional for public, non-hierarchical custom post types.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9586","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=9586"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jakemgold"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9586"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9586"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9586"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9586"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9586"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}