Title: Adjacent Archive Links
Author: Justin Watt
Published: <strong>26.11.2012</strong>
Last modified: 18.05.2015

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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

# Adjacent Archive Links

 Автор: [Justin Watt](https://profiles.wordpress.org/justincwatt/)

[Скачать](https://downloads.wordpress.org/plugin/adjacent-archive-links.zip)

 * [Детали](https://ru.wordpress.org/plugins/adjacent-archive-links/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/adjacent-archive-links/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/adjacent-archive-links/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/adjacent-archive-links/#developers)

 [Поддержка](https://wordpress.org/support/plugin/adjacent-archive-links/)

## Описание

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

## Скриншоты

[⌊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.

## Установка

 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(); ?>`

## Часто задаваемые вопросы

  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.

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Adjacent Archive Links» — проект с открытым исходным кодом. В развитие плагина 
внесли свой вклад следующие участники:

Участники

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

[Перевести «Adjacent Archive Links» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/adjacent-archive-links)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/adjacent-archive-links/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/adjacent-archive-links/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/adjacent-archive-links/)
по [RSS](https://plugins.trac.wordpress.org/log/adjacent-archive-links/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 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

## Мета

 *  Версия **3.0**
 *  Обновление: **11 лет назад**
 *  Активных установок: **10+**
 *  Версия WordPress ** 3.0 или выше **
 *  Совместим вплоть до: **4.2.39**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/adjacent-archive-links/)
 * Метки:
 * [archive](https://ru.wordpress.org/plugins/tags/archive/)[archives](https://ru.wordpress.org/plugins/tags/archives/)
   [date archives](https://ru.wordpress.org/plugins/tags/date-archives/)[navigation](https://ru.wordpress.org/plugins/tags/navigation/)
   [template tag](https://ru.wordpress.org/plugins/tags/template-tag/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/adjacent-archive-links/advanced/)

## Оценки

 5 из 5 звёзд.

 *  [  2 5-звездный отзыв     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/adjacent-archive-links/reviews/)

## Участники

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

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/adjacent-archive-links/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](http://justinsomnia.org/2012/11/adjacent-archive-links-for-wordpress/)