<tpl:ArchivePrevious>

In an archive context (i.e. archive/2008/10), this loop returns the previous day, month or year.

Attributes

type

Defines the precision level of returned dates. The possible values are:

  • day : blog days
  • month : blog months
  • year : blog years

Default value is month.

post_type

Indicates the type of post that has to be used to return archives. By default, the value is post.

post_lang

This attribute only returns archives including posts in a given language.

Examples

<tpl:ArchivePrevious>
  <a href="{{tpl:ArchiveURL}}">Previous month</a>
</tpl:ArchivePrevious>

Wiki powered by Dokuwiki.