Title: Adjacent Archive Links
Author: Justin Watt
Published: <strong>26. November 2012</strong>
Last modified: 18. Mai 2015

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/adjacent-archive-links.svg)

# Adjacent Archive Links

 By [Justin Watt](https://profiles.wordpress.org/justincwatt/)

[Download](https://downloads.wordpress.org/plugin/adjacent-archive-links.zip)

 * [Details](https://de-ch.wordpress.org/plugins/adjacent-archive-links/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/adjacent-archive-links/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/adjacent-archive-links/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/adjacent-archive-links/#developers)

 [Support](https://wordpress.org/support/plugin/adjacent-archive-links/)

## Description

After activating the plugin, you will have two new template tags at your disposal:

    ```
    <?php previous_archive_link( 'format', 'link' ); ?>
    <?php next_archive_link( 'format', 'link' ); ?>
    ```

They adapt their output depending on whether the date archive is a day, a month,

or a year, and they will only output a link for an adjacent time period in which
you have published posts. Both tags take two string parameters, _format_ and _link_.

The _format_ parameter defines what comes before and after the link. In it, `%link`

will be replaced with whatever is declared in the link parameter below. `previous_archive_link`
defaults to «`&laquo; %link`» and `next_archive_link` defaults to «`%link &raquo;`«.

The _link_ parameter defines the link text. Both tags default to «`%date`«, the

adjacent archive page’s localized date.

If you’re interested in contributing to the code behind this plugin, it’s also hosted
on GitHub:
 https://github.com/justincwatt/wp-adjacent-archive-links

## Screenshots

[⌊This is an example of how it looks on a date archive page customized to only show
post titles in chronological order.⌉⌊This is an example of how it looks on a date
archive page customized to only show post titles in chronological order.⌉[

This is an example of how it looks on a date archive page customized to only show
post titles in chronological order.

## Installation

 1. Extract the zip file, drop the contents in your wp-content/plugins/ directory, 
    and then activate from the Plugins page.
 2. Edit your theme file (e.g. archive.php) and add the template tags `<?php previous_archive_link();?
    >` and `<?php next_archive_link(); ?>`

## FAQ

  How do I make my date archives show all posts for that time period in chronological
order, rather than just 10 at a time?

Just add `query_posts($query_string . '&showposts=1000&order=asc');` to the archive.
php template right under the header call.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Adjacent Archive Links” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Justin Watt ](https://profiles.wordpress.org/justincwatt/)

[Translate “Adjacent Archive Links” into your language.](https://translate.wordpress.org/projects/wp-plugins/adjacent-archive-links)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/adjacent-archive-links/),
check out the [SVN repository](https://plugins.svn.wordpress.org/adjacent-archive-links/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/adjacent-archive-links/)
by [RSS](https://plugins.trac.wordpress.org/log/adjacent-archive-links/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0

 * Fixed issue where date strings were appearing non-localized (in en_US only)
 * Added Spanish localization (Hat tip: Andrew Kurtis of WebHostingHub)

#### 2.0

 * Fixed use of wpdb->prepare for WordPress v3.5 (Hat tip: Jonathan Patt)
 * Improved output of custom previous/next archive hrefs (Hat tip: Trevor Morris)
 * Added the ability to apply filters to the output of both functions (Hat tip: 
   Trevor Morris)

#### 1.0

 * Initial version

## Meta

 *  Version **3.0**
 *  Last updated **11 Jahren ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **4.2.39**
 *  Language
 * [English (US)](https://wordpress.org/plugins/adjacent-archive-links/)
 * Tags
 * [archive](https://de-ch.wordpress.org/plugins/tags/archive/)[archives](https://de-ch.wordpress.org/plugins/tags/archives/)
   [date archives](https://de-ch.wordpress.org/plugins/tags/date-archives/)[navigation](https://de-ch.wordpress.org/plugins/tags/navigation/)
   [template tag](https://de-ch.wordpress.org/plugins/tags/template-tag/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/adjacent-archive-links/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  2 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/)

## Contributors

 *   [ Justin Watt ](https://profiles.wordpress.org/justincwatt/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/adjacent-archive-links/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://justinsomnia.org/2012/11/adjacent-archive-links-for-wordpress/)