{"id":15544,"date":"2011-11-02T20:51:16","date_gmt":"2011-11-02T20:51:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/ez-post-archives\/"},"modified":"2012-05-02T20:07:41","modified_gmt":"2012-05-02T20:07:41","slug":"ez-post-archives","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ez-post-archives\/","author":8505554,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3","stable_tag":"trunk","tested":"3.3.2","requires":"3.2.1","requires_php":"","requires_plugins":"","header_name":"EZ Post Archives","header_author":"Jonathan Cowher","header_description":"","assets_banners_color":"","last_updated":"2012-05-02 20:07:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2703,"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":["1.1","1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3621,28325],"plugin_category":[],"plugin_contributors":[89607],"plugin_business_model":[],"class_list":["post-15544","plugin","type-plugin","status-closed","hentry","plugin_tags-archives","plugin_tags-post-archives","plugin_contributors-joncowherdesign","plugin_committers-joncowherdesign"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ez-post-archives.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h3>Features<\/h3>\n\n<ul>\n<li>Allows you to easily generate an archive list by year or month - very similar to the wp_get_archives() function<\/li>\n<li>Generates necessary rewrite rules<\/li>\n<li>Generates SEO friendly title tags for archive templates<\/li>\n<li>Allows use of archive templates (archive.php or archive-{post-type}.php)<\/li>\n<li>Allows easy generation of necessary template headings<\/li>\n<\/ul>\n\n<h3>Generate archive list<\/h3>\n\n<pre><code>EZ_Post_Archives::get($args);\n\n$args = array(\n    'post_type' =&gt; '',\n    \/\/ the slug(s) of the custom post type.\n    \/\/ must use an array if using multiple post types\n\n    'limit' =&gt; 12,\n    \/\/ sets the number of archives pulled in\n\n    'type' =&gt; 'yearly',\n    \/\/ either yearly or monthly\n\n    'taxonomy' =&gt; null,\n    \/\/ optional taxonomy\n\n    'term' =&gt; null,\n    \/\/ optional term\n\n    'month_format' =&gt; '&lt;a href=\"{{link}}\"&gt;{{month}} {{year}}&lt;\/a&gt;',\n    \/\/ format for monthly links\n\n    'year_format' =&gt; '&lt;a href=\"{{link}}\"&gt;{{year}}&lt;\/a&gt;',\n    \/\/ format for yearly links\n\n    'month_name_format' =&gt; 'M'\n    \/\/ see the PHP date() function for reference\n);\n<\/code><\/pre>\n\n<h3>Generate page heading<\/h3>\n\n<pre><code>EZ_Post_Archives::the_title();\n<\/code><\/pre>\n\n<h3>Template files<\/h3>\n\n<pre><code>archive-{post-slug}.php\narchive.php\n<\/code><\/pre>\n\n<h3>CSS Helpers<\/h3>\n\n<p>If you use the body_class() function, the plugin will add the following classes to your\nbody tag:<\/p>\n\n<ul>\n<li>ez-post-archives<\/li>\n<li>ez-post-archives-{post-slug}<\/li>\n<\/ul>\n\n<h3>Know what template you're on<\/h3>\n\n<p>If you need to check if you are on an archive page use the is_post_type_archive() conditional function<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Using the WordPress plugin installer tool simply upload the ez-post-archives.zip file<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>My archive links aren't working!<\/dt>\n<dd><p>If you create a new post type after the plugin is installed you will need to flush the rewrite rules. You can do this\nby going to Settings &gt; Permalinks and simply clicking the \"Save Changes\" button.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3<\/h4>\n\n<ul>\n<li>Fixed fatal error with get_called_class() in PHP version &lt; 5.3<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added support for multiple post types<\/li>\n<li>Fixed misc bugs<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added support for taxonomy archives<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"Easily add custom post type and taxonomy archives to your theme","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15544","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=15544"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joncowherdesign"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15544"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15544"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15544"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15544"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15544"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}