{"id":11119,"date":"2010-11-09T16:20:48","date_gmt":"2010-11-09T16:20:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-post-archives\/"},"modified":"2011-04-29T15:14:11","modified_gmt":"2011-04-29T15:14:11","slug":"custom-post-archives","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/custom-post-archives\/","author":1845267,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"3.1.4","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Custom Post Archives","header_author":"Jacob Dunn","header_description":"","assets_banners_color":"","last_updated":"2011-04-29 15:14:11","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bozell.com\/","header_plugin_uri":"http:\/\/www.bozell.com","header_author_uri":"http:\/\/www.bozell.com\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":7565,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.3":"<p>Bug fixes, addition of tag classes\/templates.<\/p>","1.0.2":"<p>Addition of ability to use new symbols in slug, and some new global functions.<\/p>","1.0.1":"<p>Addition of new body class (category-{post-type}), a new template (category-{post-type}.php) and updates to help section.<\/p>","1.0":"<p>Initial public download.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566867","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566867","resolution":"1","location":"plugin"}},"screenshots":{"1":"The Settings Screen in the Administration.","2":"You have the ability to add Custom Post Archives via the new Menu option!"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3621,1487,8709,4516],"plugin_category":[43],"plugin_contributors":[83916],"plugin_business_model":[],"class_list":["post-11119","plugin","type-plugin","status-publish","hentry","plugin_tags-archives","plugin_tags-custom-post-types","plugin_tags-mod_rewrite","plugin_tags-templates","plugin_category-customization","plugin_contributors-spacemanspud","plugin_committers-spacemanspud"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-post-archives.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-post-archives\/trunk\/screenshot-1.png?rev=1566867","caption":"The Settings Screen in the Administration."},{"src":"https:\/\/ps.w.org\/custom-post-archives\/trunk\/screenshot-2.png?rev=1566867","caption":"You have the ability to add Custom Post Archives via the new Menu option!"}],"raw_content":"<!--section=description-->\n<p>Custom Post Archives bridges the gap between creating Custom Post Types in WordPress 3, and actually displaying those posts. With this plugin, you have\nthe option of displaying a completely seperate blog-like section for each post type, complete with all the features you expect to see with WordPress.<\/p>\n\n<p>For each custom post type, if you click \"active\" and enter a slug-name, this plugin will let you display post-type specific:<\/p>\n\n<ul>\n<li>Archives<\/li>\n<li>Date archives<\/li>\n<li>Author archives<\/li>\n<li>Category archives<\/li>\n<li>RSS Feeds<\/li>\n<\/ul>\n\n<p>This plug-in also provides many additional features to fully integrate your custom post types, including:<\/p>\n\n<ul>\n<li>Adds a menu option to the new menu section created in WordPress 3 (for themes that support it)<\/li>\n<li>Combined archives (http:\/\/www.mysite.com\/type1+type2\/)<\/li>\n<li>Option to add post types to default blog<\/li>\n<li>Option to add post types to default RSS feed<\/li>\n<li>Adds post type support to wp_get_archives function<\/li>\n<li>Adds multiple global functions and filters for working with custom post types (see Functions and Filters or Plugin Help for details)<\/li>\n<li>Automatically displays the associated post type on custom taxonomy archives<\/li>\n<li>Extends upon the WordPress templating, allowing for flexibility by theme authors (see FAQ or Plugin Help for details)<\/li>\n<li>Automatically flushes the rewrite cache after modifications are detected<\/li>\n<li>Automatically adds a \"blog-{post_type}\" type class to the body of the created archives (for themes that implement body_class())<\/li>\n<\/ul>\n\n<p>For help and support, help has been built into the plug-in page's contextual help section; be sure to check <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-post-archives\/faq\/\">the FAQ<\/a> and the <a href=\"http:\/\/wordpress.org\/tags\/custom-post-archives?forum_id=10\">plug-in forums<\/a> if that doesn't do it.<\/p>\n\n<p>If there are any other features you'd like to see, I'm all ears. Feel free to <a href=\"mailto:&#x72;&#x65;&#113;&#117;&#x65;&#x73;&#116;&#115;&#x2e;&#x63;&#117;&#115;&#x74;&#x6f;&#109;&#112;&#x6f;&#x73;&#116;&#097;&#x72;&#x63;&#104;&#105;&#x76;&#x65;&#115;&#064;&#x67;&#x6d;&#097;&#105;&#x6c;&#x2e;&#099;&#111;&#x6d;\">send a message<\/a>, or <a href=\"http:\/\/wordpress.org\/tags\/custom-post-archives?forum_id=10\">hit the forums<\/a>!<\/p>\n\n<h3>Functions and Filters<\/h3>\n\n<p>The following function and filters are created by this plug-in. For more detailed descriptions, check the Help section built into the settings page.<\/p>\n\n<p><strong>Functions<\/strong><\/p>\n\n<pre><code>is_custom_archive({$post_type = false});\n\nget_custom_archive_url($post_type);\nget_custom_archive_label({$post_type = false});\nget_custom_archive_link($post_type);\n<\/code><\/pre>\n\n<p>The following functions are for advanced users. Each overrides the settings for the corresponding post_type in the plugin settings.<\/p>\n\n<pre><code>add_custom_archive($post_type,$slug,{$in_default = false,$in_rss = false});\nremove_custom_archive($post_type);\nadd_to_default_archive($post_type);\nremove_from_default_archive($post_type);\nreset_custom_archive_to_default($post_type);\n<\/code><\/pre>\n\n<p><strong>Filters<\/strong><\/p>\n\n<pre><code>cpa_rewrite_label\n<\/code><\/pre>\n\n<p>Allows you to format the label returned by get_custom_archive_label().<\/p>\n\n<pre><code>cpa_templates\n<\/code><\/pre>\n\n<p>Allows you to provide or alter the list of templates Custom Post Archives searches for.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>custom-post-archives\/<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Configure the post types you would like archives for on the settings page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I format the newly created Archives?<\/dt>\n<dd><p>This plugin implements an extension of the <a href=\"http:\/\/codex.wordpress.org\/Template_Hierarchy\">WordPress templating framework<\/a>.\nIn descending order, each custom archive will look for these files in your template directory:<\/p>\n\n<ul>\n<li>tag-{post-type}.php (Only if is_tag())<\/li>\n<li>date-{post-type}.php (Only if is_date())<\/li>\n<li>author-{post-type}.php (Only if is_author())<\/li>\n<li>category-{post-type}.php (Only if is_category())<\/li>\n<li>archive-{post-type}.php (Only if is_custom_archive({post-type}))<\/li>\n<li>archive-custom.php (Only if is_custom_archive())<\/li>\n<li>archive.php<\/li>\n<li>index.php<\/li>\n<\/ul>\n\n<p>In each of the above examples, {post-type} is replaced by the custom post type name, \nor an alphabetically sorted list of post types separated by a <code>_<\/code>, for archives where multiple post types are shown.<\/p>\n\n<p>Custom Post Archives does not actually create any new files in your template directory, but it will use the archive.php file by default.<\/p><\/dd>\n<dt>How can I format the page title on the custom archive page?<\/dt>\n<dd><p>Custom Post Archives implements the <code>wp_title<\/code> filter to format the page title. If you'd like to change that formatting you can place\na variation of the following code into your <code>functions.php<\/code> file in your template directory.<\/p>\n\n<p>If there are any other issues, feel free to <a href=\"mailto:&#x72;&#x65;&#113;&#117;&#x65;&#x73;&#116;&#115;&#x2e;&#x63;&#117;&#115;&#x74;&#x6f;&#109;&#112;&#x6f;&#x73;&#116;&#097;&#x72;&#x63;&#104;&#105;&#x76;&#x65;&#115;&#064;&#x67;&#x6d;&#097;&#105;&#x6c;&#x2e;&#099;&#111;&#x6d;\">send a message<\/a>, or <a href=\"http:\/\/wordpress.org\/tags\/custom-post-archives?forum_id=10\">hit the forums<\/a>.<\/p>\n\n<pre><code>&lt;?php\n\/\/ Format Page title for custom archives\nfunction custom_archive_wp_title($title, $sep, $seplocation)\n{\n    if(!is_custom_archive()) return $title;\n\n    $label = get_custom_archive_label();\n\n    if($label)\n        $title = ($seplocation == 'right')\n            ? \"$label $sep \"\n            : \" $sep $label\";\n\n    return $title;\n}\nadd_filter('wp_title','custom_archive_wp_title',10,3);\n?&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3 - 28 Apr 2011<\/h4>\n\n<ul>\n<li>Fixed bug where config page did not appear in certain cases if perl was installed<\/li>\n<li>Additional sanity checks in set_queried_object<\/li>\n<li>Eliminated redundant code in pre_get_home<\/li>\n<li>Fixed multi-post archive template call - was using \"+\" instead of \"_\"<\/li>\n<li>Added archive-post_type and tag-post_type body classes<\/li>\n<li>Addition of new 'get_post_type_archive_link' function.<\/li>\n<li>Addition of new 'get_post_type_archive_feed_link' function.<\/li>\n<li>Addition of new 'post_type_archive_title' function.<\/li>\n<\/ul>\n\n<h4>1.0.2 - 12 Nov 2010<\/h4>\n\n<ul>\n<li>Added ability to use \"\/\" or \"+\" in rewrite slug.<\/li>\n<li>Addition of new 'get_custom_archive_year_link' function.<\/li>\n<li>Addition of new 'get_custom_archive_month_link' function.<\/li>\n<li>Addition of new 'get_custom_archive_day_link' function.<\/li>\n<li>Addition of new 'get_custom_archive_feed_link' function.<\/li>\n<li>Addition of new 'get_custom_archive_feed_url' function.<\/li>\n<\/ul>\n\n<h4>1.0.1 - 11 Nov 2010<\/h4>\n\n<ul>\n<li>Addition of new body class (category-{post-type}), a new template (category-{post-type}.php) and updates to help section.<\/li>\n<\/ul>\n\n<h4>1.0 - 10 Nov 2010<\/h4>\n\n<ul>\n<li>Initial public release onto WordPress.org.<\/li>\n<\/ul>","raw_excerpt":"Custom Post Archives creates a fully featured set of archives for each post type using a robust back-end and native templating functionality.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11119"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/spacemanspud"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11119"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11119"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11119"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11119"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11119"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}