Here are a few tests of the archive pro matic shortcode:
[archives type="daily" limit="5"]
- Fri, 4th December, 2020
- Mon, 23rd November, 2020
- Mon, 16th November, 2020
- Wed, 9th September, 2020
- Thu, 6th August, 2020
[archives type="weekly" limit="5"]
- Mon, 30th November, 2020–Sun, 6th December, 2020
- Mon, 23rd November, 2020–Sun, 29th November, 2020
- Mon, 16th November, 2020–Sun, 22nd November, 2020
- Mon, 7th September, 2020–Sun, 13th September, 2020
- Mon, 3rd August, 2020–Sun, 9th August, 2020
[archives type="monthly" limit="5"]
[archives type="yearly" limit="5"]
[archives type="yearly" limit="5" show_post_count="true"]
[archives type="decade"]
Archive-Pro-Matic
The post_type and cat_id attributes are available by upgrading to Archive-Pro-Matic.
[archives type="yearly" post_type="monkey" limit="5"]
[archives type="yearly" post_type="donkey" limit="5"]
[archives type="monthly" post_type="donkey" limit="5"]
[archives type="monthly" post_type="monkey" limit="5"]
[archives type="weekly" post_type="monkey" limit="5"]
- Mon, 30th January, 2017–Sun, 5th February, 2017
- Mon, 13th July, 2015–Sun, 19th July, 2015
- Mon, 10th December, 2012–Sun, 16th December, 2012
- Mon, 1st October, 2012–Sun, 7th October, 2012
- Mon, 23rd July, 2012–Sun, 29th July, 2012
[archives type="daily" post_type="monkey" limit="5"]
- Mon, 30th January, 2017–Sun, 5th February, 2017
- Mon, 13th July, 2015–Sun, 19th July, 2015
- Mon, 10th December, 2012–Sun, 16th December, 2012
- Mon, 1st October, 2012–Sun, 7th October, 2012
- Mon, 23rd July, 2012–Sun, 29th July, 2012
[archives type="yearly" cat_id="4" limit="5"]
[archives type="alpha" cat_id=4 limit="5"]
order
By default alpha and postbypost lists are always displayed A-Z descending. To change the order of alpha or postbypost, the alpha_order
or post_order
attributes must be used.
Alpha type archives have a default order of ASC:
[archives type="alpha" limit="5"]
- 2001-yard stare
- 4DD Mephisto VR
- Adding Collapse-O-Matic to Static HTML
- AFC get_field Test
- Alt Attribute Removed
To change this set the alpha_order attribute to DESC:
[archives type="alpha" alpha_order="DESC" limit="5"]
- Yearly Countdown Omit Weeks
- Wonky Submit & Print-Pro-Matic Button
- Wonky Submit & Print-O-Matic Button
- Weekday Multi-Schedule Countdown
- Ultimate Print-O-Matic Form Elements Test
Post-by-post archive types have a default order of DESC (new descending to old posts):
[archives type="postbypost" limit="5"]
- Archive-Pro-Matic Birthmonth Grid
- Archive-Pro-Matic Decade Filters
- Archive Pro Matic Multiple CPT
- Collapse-O-Matic w/ Inline Excerpt
- Collapse-Pro-Matic – One After Another
To change this set the post_order attribute to ASC (old ascending to new posts):
[archives type="postbypost" post_order="ASC" limit="5"]
New as of version 1.0
[arcpromat type="alpha" cat_id="4" limit="5"/]
New as of version 1.0.4
[archives type="alpha" cat_id="4" limit="10" alpha_headings="true"/]
Styling with CSS
To style the css you can wrap the shortcode in a div with a specific class or id like so:
<div class="my_archive">
[archives type="weekly" post_type="monkey" limit="5"/]
</div>
And then define the UL and LI CSS like so:
.my_archive UL {
list-style-type: circle;
}
The result:
Here is a post by post:
- Archive-Pro-Matic Birthmonth Grid
- Archive-Pro-Matic Decade Filters
- Archive Pro Matic Multiple CPT
- Collapse-O-Matic w/ Inline Excerpt
- Collapse-Pro-Matic – One After Another
- Archive-Pro-Matic Birthday and Birthmonth types
- Collapse-O-Matic Nested Grouping
- Collapse-O-Matic New Findme Options
- Archive-Pro-Matic Advanced Category Archives
- Archive-Pro-Matic – Advanced Monthly Sub Archives
here is an alpha
- 2001-yard stare
- 4DD Mephisto VR
- Adding Collapse-O-Matic to Static HTML
- AFC get_field Test
- Alt Attribute Removed
and in reverse:
- Yearly Countdown Omit Weeks
- Wonky Submit & Print-Pro-Matic Button
- Wonky Submit & Print-O-Matic Button
- Weekday Multi-Schedule Countdown
- Ultimate Print-O-Matic Form Elements Test
Here is a CPT (monkey) and Taxonomy (location) and term (Europe):
[archives type="yearly" post_type="monkey" taxonomy="location" term="Europe"/]
Post by post:
[archives type="postbypost" post_type="monkey" taxonomy="location" term="Europe"/]