{"id":20859,"date":"2012-11-26T21:14:10","date_gmt":"2012-11-26T21:14:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/adjacent-archive-links\/"},"modified":"2015-05-18T00:24:33","modified_gmt":"2015-05-18T00:24:33","slug":"adjacent-archive-links","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/adjacent-archive-links\/","author":2009272,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.0","stable_tag":"trunk","tested":"4.2.39","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Adjacent Archive Links","header_author":"Justin Watt","header_description":"","assets_banners_color":"","last_updated":"2015-05-18 00:24:33","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/justinsomnia.org\/2012\/11\/adjacent-archive-links-for-wordpress\/","header_plugin_uri":"http:\/\/justinsomnia.org\/2012\/11\/adjacent-archive-links-for-wordpress\/","header_author_uri":"http:\/\/justinsomnia.org\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3071,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"3.0":"<p>Better localization support<\/p>","2.0":"<p>Updated for WordPress 3.5<\/p>","1.0":"<p>Initial version<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0","3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539244","resolution":"1","location":"plugin"}},"screenshots":{"1":"This is an example of how it looks on a date archive page customized to only show post titles in chronological order."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1445,3621,3622,1753,3623],"plugin_category":[43],"plugin_contributors":[80854],"plugin_business_model":[],"class_list":["post-20859","plugin","type-plugin","status-publish","hentry","plugin_tags-archive","plugin_tags-archives","plugin_tags-date-archives","plugin_tags-navigation","plugin_tags-template-tag","plugin_category-customization","plugin_contributors-justincwatt","plugin_committers-justincwatt"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/adjacent-archive-links.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/adjacent-archive-links\/trunk\/screenshot-1.png?rev=1539244","caption":"This is an example of how it looks on a date archive page customized to only show post titles in chronological order."}],"raw_content":"<!--section=description-->\n<p>After activating the plugin, you will have two new template tags at your disposal:<\/p>\n\n<pre><code>&lt;?php previous_archive_link( 'format', 'link' ); ?&gt;\n&lt;?php next_archive_link( 'format', 'link' ); ?&gt;\n<\/code><\/pre>\n\n<p>They adapt their output depending on whether the date archive is a day, a month,\nor a year, and they will only output a link for an adjacent time period in which you\nhave published posts. Both tags take two string parameters, <em>format<\/em> and <em>link<\/em>.<\/p>\n\n<p>The <em>format<\/em> parameter defines what comes before and after the link. In it, <code>%link<\/code> \nwill be replaced with whatever is declared in the link parameter below. <code>previous_archive_link<\/code> \ndefaults to \"<code>&amp;laquo; %link<\/code>\" and <code>next_archive_link<\/code> defaults to \"<code>%link &amp;raquo;<\/code>\".<\/p>\n\n<p>The <em>link<\/em> parameter defines the link text. Both tags default to \"<code>%date<\/code>\", the \nadjacent archive page's localized date.<\/p>\n\n<p>If you're interested in contributing to the code behind this plugin, it's also hosted on GitHub:\nhttps:\/\/github.com\/justincwatt\/wp-adjacent-archive-links<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Extract the zip file, drop the contents in your wp-content\/plugins\/ directory, and then activate from the Plugins page.<\/li>\n<li>Edit your theme file (e.g. archive.php) and add the template tags <code>&lt;?php previous_archive_link(); ?&gt;<\/code> and <code>&lt;?php next_archive_link(); ?&gt;<\/code><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I make my date archives show all posts for that time period in chronological order, rather than just 10 at a time?<\/dt>\n<dd><p>Just add <code>query_posts($query_string . '&amp;showposts=1000&amp;order=asc');<\/code> to the archive.php template right under the header call.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.0<\/h4>\n\n<ul>\n<li>Fixed issue where date strings were appearing non-localized (in en_US only)<\/li>\n<li>Added Spanish localization (Hat tip: Andrew Kurtis of WebHostingHub)<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Fixed use of wpdb-&gt;prepare for WordPress v3.5 (Hat tip: Jonathan Patt)<\/li>\n<li>Improved output of custom previous\/next archive hrefs (Hat tip: Trevor Morris)<\/li>\n<li>Added the ability to apply filters to the output of both functions (Hat tip: Trevor Morris)<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version<\/li>\n<\/ul>","raw_excerpt":"Adds two new template tags to output previous and next links on date archive pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/20859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=20859"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/justincwatt"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=20859"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=20859"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=20859"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=20859"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=20859"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=20859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}