Title: AW WordPress Yearly Category Archives
Author: AndyWarren
Published: <strong>18.08.2013</strong>
Last modified: 30.01.2018

---

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

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

![](https://s.w.org/plugins/geopattern-icon/aw-yearly-category-archives.svg)

# AW WordPress Yearly Category Archives

 Автор: [AndyWarren](https://profiles.wordpress.org/awarren/)

[Скачать](https://downloads.wordpress.org/plugin/aw-yearly-category-archives.zip)

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

 [Поддержка](https://wordpress.org/support/plugin/aw-yearly-category-archives/)

## Описание

#### AW WordPress Yearly Category Archives has two (2) shortcodes available, both of which are required for the plugin to function properly.

Follow the instructions below to use the plugin.

**The first shortcode is `[aw_year_links cat="X" postslug="slug-to-post-or-page"]`,
which is used to build and display the year links.**

The following list explains this shortcode’s usage and requirements.

 * This shortcode has two (3) attributes. Two (2) are required, and one (1) is optional.
 * The `cat="X"` attribute is the category ID you wish to display yearly links from.
   Replace the X with the numerical ID of the category you wish to query. You may
   include a comma separated list of category IDs with this attribute if you want
   to query multiple categories. **This attribute is required.**
 * The `postslug="slug-to-post-or-page"` attribute is the slug to the page that 
   will display your yearly archived posts. This is also the slug of the page you
   will include the second shortcode on. **This attribute is required.**
 * The `dropdown="yes"` attribute will allow a dropdown select input to be used 
   in place of the standard unordered list of the year links. **This attribute is
   optional and can be left off completely.**
 * Place this shortcode where you would like to display the year links to the specified
   category.

**The second shortcode is `[aw_show_posts cat="X" readmore="Continue Reading" publishedon
="n/j/Y"]`, which is used to display the post content after click a year link.**

The following list explains this shortcode’s usage and requirements.

 * This shortcode has three (3) attributes. One (1) is required, and two (2) are
   optional.
 * The `cat="X"` attribute is the category ID you wish to display yearly archived
   posts from. Replace the X with the numerical ID of the category you wish to query.
   You may include a comma separated list of category IDs with this attribute if
   you want to query multiple categories. **This attribute is required.**
 * The `readmore="Continue Reading"` attribute is the text you wish to display for
   the «Read More» link. This attribute is optional and will default to «Read More»
   if left out.
 * The `publishedon="n/j/Y"` attribute is the PHP date format the published on date
   will appear in the archived posts. This attribute is optional and will default
   to «M jS, Y» if left out. Refer [here](http://php.net/manual/en/function.date.php)
   for further info on the PHP date format.
 * The `showsubheader="no"` attribute is used to display a subheader above the post
   output that says which category and year is being displayed. it will read like
   this: **Category: Example Category Name — Year: 20XX**. This is an optional shortcode
   attribute. If left off the shortcode the subheader will be shown. Use `showsubheader
   ="no"` to not output the subheader. **This attribute is optional and can be left
   off completely.**
 * Place this shortcode where you would like to display your archived posts.

**Additional Notes**

 * The shortcodes can be used multiple times throughout the site as long as they
   are always used in pairs with each pair having the same `cat="X"` attribute. 
   This is handy for displaying separate yearly category archives.
 * The plugin will query all custom post types as well as the main «Posts».
 * Currently the plugin will display Five (5) elements for each post, unless the
   admin chooses to write their own post structure on the settings page. They are
   as follows and in order:
    1. `<h3 class="awyca_subheader">Category: Example Category Name - Year: 20XX</h3
       >`
    2. `<div class="awyca_postWrapper"></div>` — (this wraps each post including all
       the elements below in this list)
 * `<h2 class="awPostTitle">The Post's Title</h2>`
 * `<p class="awPublishedOnDate">Published on Aug 13th, 2013</p>`
 * `<p class="awPostExcerpt">The Post's First 25 Words...<a href="http://yoursite.
   com/the-post-slug">Read More</a></p>`
 * `<hr class="awPostDivider"/>`
 * The actual post elements have classes; however they do not have styles. This 
   is to allow you to style them how you choose. The only frontend style included
   is for the post divider `<hr class="awPostDivider"/>` rule. This can be overriden
   if you so choose to.
 * Currently there is also no pagination built into the display of yearly archived
   posts. I do have plans for this in the future if time allows.
 * Currently I will only be able to offer limited support for this plugin. This 
   could change in the future, also if time allows.
 * If you do not know how to find your category IDs, I recommend [Reveal IDs](https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/).

Follow me on Twitter [@iAmAndyWarren](https://twitter.com/iAmAndyWarren) or find
me at [andy-warren.net](http://andy-warren.net). Want to make the plugin better?
Fork it or submit pull requests on GitHub at [https://github.com/andywarren/aw-yearly-category-archives](https://github.com/andywarren/aw-yearly-category-archives).

## Скриншоты

[⌊This screenshot is of the shortcode needed to generate the yearly links.  Place
this shortcode where you would like to display the year links to the specified category.⌉⌊
This screenshot is of the shortcode needed to generate the yearly links.  Place 
this shortcode where you would like to display the year links to the specified category
.⌉[

This screenshot is of the shortcode needed to generate the yearly links. Place this
shortcode where you would like to display the year links to the specified category.

[⌊This screenshot is of the unordered list the above shortcode will generate.⌉⌊This
screenshot is of the unordered list the above shortcode will generate.⌉[

This screenshot is of the unordered list the above shortcode will generate.

[⌊This screenshot is of the optional dropdown that can be used in place of the unordered
list in the screenshot above.⌉⌊This screenshot is of the optional dropdown that 
can be used in place of the unordered list in the screenshot above.⌉[

This screenshot is of the optional dropdown that can be used in place of the unordered
list in the screenshot above.

[⌊This screenshot is of the shortcode needed to display the yearly category archives.
Place this shortcode where you would like to display your yearly archived posts.⌉⌊
This screenshot is of the shortcode needed to display the yearly category archives.
Place this shortcode where you would like to display your yearly archived posts.⌉[

This screenshot is of the shortcode needed to display the yearly category archives.
Place this shortcode where you would like to display your yearly archived posts.

[⌊This screenshot is of the post layout you will see when using the above shortcode.⌉⌊
This screenshot is of the post layout you will see when using the above shortcode
.⌉[

This screenshot is of the post layout you will see when using the above shortcode.

[⌊This screenshot shows the settings page when you first arrive there.⌉⌊This screenshot
shows the settings page when you first arrive there.⌉[

This screenshot shows the settings page when you first arrive there.

[⌊This screenshot shows the settings page when you have opted to include a custom
post structure for the output loop.⌉⌊This screenshot shows the settings page when
you have opted to include a custom post structure for the output loop.⌉[

This screenshot shows the settings page when you have opted to include a custom 
post structure for the output loop.

## Установка

To install the plugin follow these instructions:

 1. Download the plugin and unzip it.
 2. Upload the folder aw_yearly_category_archives to your /wp-content/plugins/ directory.
 3. Activate the plugin from your WordPress admin panel.
 4. Installation finished.

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

  Installation Instructions

To install the plugin follow these instructions:

 1. Download the plugin and unzip it.
 2. Upload the folder aw_yearly_category_archives to your /wp-content/plugins/ directory.
 3. Activate the plugin from your WordPress admin panel.
 4. Installation finished.

## Отзывы

![](https://secure.gravatar.com/avatar/30b53c599cab6410651792e0417691acf279dbe3fa8ae071824ede32d54333c1?
s=60&d=retro&r=g)

### 󠀁[So painless – Thank you](https://wordpress.org/support/topic/so-painless-thank-you/)󠁿

 [veronica.kerr](https://profiles.wordpress.org/veronicakerr/) 03.09.2016 1 ответ

Been looking for a plugin that allows for archives by category and year, this totally
fit the bill and was very easy to get set up. Styling the Archive page was pretty
easy too. Thank you again!

 [ Посмотреть все 4 отзыва ](https://wordpress.org/support/plugin/aw-yearly-category-archives/reviews/)

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

«AW WordPress Yearly Category Archives» — проект с открытым исходным кодом. В развитие
плагина внесли свой вклад следующие участники:

Участники

 *   [ AndyWarren ](https://profiles.wordpress.org/awarren/)

[Перевести «AW WordPress Yearly Category Archives» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/aw-yearly-category-archives)

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

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

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

#### 1.2.8

 * Remove get_post_types() from both shortcodes as it was causing issues for logged
   out users
 * changed get_posts() post_type parameter to «any»

#### 1.2.7

 * Added strip_tags() to the returned excerpt text to remove any html tags from 
   the standard post layout. Does not affect custom post layout.

#### 1.2.6

 * Set Year Links to show in Ascending order from most current to least current.

#### 1.2.5

 * Bug Fixes

#### 1.2.4

 * Corrected parameter in WP_Query() for the post output function

#### 1.2.3

 * Wrapped shortcode functions in an output buffer to make rendered content display
   correctly when the shortcode is used in a widget.

#### 1.2.2

 * Bug/Security Fix

#### 1.2.1

 * Removed jQuery script from being echoed, and properly regsitered/enqueued it.
 * Updated «Compatible Up To» version.

#### 1.2

 * Added new attribute `dropdown="yes"` to the shortcode used to generate the year
   links. This will allow for a dropdown to be used in place of the standard unordered
   list of years.
 * Added ability to query multiple categories

#### 1.1.1

 * Updated paths to the plugin menu pages.

#### 1.1

 * Added settings page to allow site admin to input custom HTML and/or WordPress
   Template tags to be used for the archived posts output loop.

#### 1.0.1

 * Corrected file path for menu item icon.
 * Bug fixes.

## Мета

 *  Версия **1.2.8**
 *  Обновление: **9 лет назад**
 *  Активных установок: **100+**
 *  Версия WordPress ** 3.5.2 или выше **
 *  Совместим вплоть до: **4.9.34**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/aw-yearly-category-archives/)
 * Метка:
 * [archives](https://ru.wordpress.org/plugins/tags/archives/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/aw-yearly-category-archives/advanced/)

## Оценки

 5 из 5 звёзд.

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

[Ваш отзыв](https://wordpress.org/support/plugin/aw-yearly-category-archives/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/aw-yearly-category-archives/reviews/)

## Участники

 *   [ AndyWarren ](https://profiles.wordpress.org/awarren/)

## Поддержка

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

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

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

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

 [ Пожертвовать на развитие плагина ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=C6AZTULD7TEMA)