Documentation

Shortcode

Annual Archive can also be used in posts and pages simply by including the [archives] shortcode. The following attributes can be defined to customize the way the archive is rendered:

Type Attribute

[archives type="daily"]

[archives type="weekly"]

[archives type="monthly"]

[archives type="yearly"]

[archives type="postbypost"]

[archives type="alpha"]

Limit Attribute

The limit attribute controls the number of results displayed.
[archives type="monthly" limit="7"]

The limit attribute controls the number of results displayed.
[archives type="monthly" limit="3"]

Format Attribute

[archives type="monthly" limit="7" format="option"]

Supported format value options are:

  • html – In HTML list (<li>) tags and before and after strings. This is the default.
  • option – In select (<select>) or dropdown option (<option>) tags.
  • link – Within link (<link>) tags.
  • custom – Custom list using the before and after strings.

Before Attribute

Text to place before the link when using the html or custom for format option. There is no default.

After Attribute

Text to place after the link when using the html or custom for format option. There is no default.

Showcount Attribute

[archives type="monthly" limit="7" showcount="true"]

Display number of posts in an archive (true) or do not (default). For use with all type values except ‘postbypost’

Tag Attribute

[archives type="monthly" limit="7" tag="OL"]

Defines the list type to use. Options are UL (default) and OL.