Brand: Twinpictures Plugin Oven | Category: WordPress Plugin | Updated: 7 November, 2018


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="3" /]

Order Attribute

The order attribute controls the sort order. The only valid values is DESC and ASC. Descending (DESC) is the default.

[archives type="yearly" order="ASC" /]

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 ‘html’ or ‘custom’ format options. There is no default.

After Attribute

Text to place after the link when using ‘html’ or ‘custom’ format options. There is no default.

Select Text Attribute

[archives type="monthly" limit="7" format="option" select_text="Choose Wisely" /]

The select_text attribute is used to change the default text that shows up as the default selected value when using the option format.

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.

Post_Type Attribute

Post Types are supported as of Annual Archive version 1.4.8. To list an archive of a specific custom post type, using the post_type attribute like so:

[archives type="monthly" post_type="the_post_type_slug" /]