{"id":47647,"date":"2010-11-09T08:00:00","date_gmt":"2010-11-09T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/custom-post-archives\/"},"modified":"2011-04-29T23:14:00","modified_gmt":"2011-04-29T23:14:00","slug":"custom-post-archives","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/custom-post-archives\/","title":{"rendered":"Custom Post Archives"},"content":{"rendered":"<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<br \/>\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<p>For each custom post type, if you click \u201cactive\u201d and enter a slug-name, this plugin will let you display post-type specific:<\/p>\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<p>This plug-in also provides many additional features to fully integrate your custom post types, including:<\/p>\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 \u201cblog-{post_type}\u201d type class to the body of the created archives (for themes that implement body_class())<\/li>\n<\/ul>\n<p>For help and support, help has been built into the plug-in page\u2019s contextual help section; be sure to check <a href=\"https:\/\/wordpress.org\/extend\/plugins\/custom-post-archives\/faq\/\" rel=\"ugc\">the FAQ<\/a> and the <a href=\"https:\/\/wordpress.org\/tags\/custom-post-archives?forum_id=10\" rel=\"ugc\">plug-in forums<\/a> if that doesn\u2019t do it.<\/p>\n<p>If there are any other features you\u2019d like to see, I\u2019m all ears. Feel free to <a href=\"mailto:requests.custompostarchives@gmail.com\" rel=\"nofollow ugc\">send a message<\/a>, or <a href=\"https:\/\/wordpress.org\/tags\/custom-post-archives?forum_id=10\" rel=\"ugc\">hit the forums<\/a>!<\/p>\n<h3>Functions and Filters<\/h3>\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<p><strong>Functions<\/strong><\/p>\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<p>The following functions are for advanced users. Each overrides the settings for the corresponding post_type in the plugin settings.<\/p>\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<p><strong>Filters<\/strong><\/p>\n<pre><code>cpa_rewrite_label\n<\/code><\/pre>\n<p>Allows you to format the label returned by get_custom_archive_label().<\/p>\n<pre><code>cpa_templates\n<\/code><\/pre>\n<p>Allows you to provide or alter the list of templates Custom Post Archives searches for.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Custom Post Archives creates a fully featured set of archives for each post type using a robust back-end and native templating functionality.<\/p>\n","protected":false},"author":65,"featured_media":229092,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Custom Post Archives - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Custom Post Archives creates a fully featured set of archives for each post type using a robust back-end and native templating functionality."},"footnotes":""},"categories":[1],"tags":[2458,744,11931,1297],"class_list":["post-47647","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-archives","tag-custom-post-types","tag-mod_rewrite","tag-templates"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=47647"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/47647\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/229092"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=47647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=47647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=47647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}