WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Smarter Archives

Easily navigate the yearly and monthly archives of your blog.

Usage

The [smarter-archives] shortcode takes these arguments (default values included):

  • mode (default: output) -- if it's set to output, the plugin prints the listing. Set it to false to return the value
  • wrapper_class (default: smart-archives) -- class given to the tag wrapped around the listing (<div> by default)
  • wrapper_tag (default: div) -- tag wrapped around the listing
  • year_link_class (default: year-link) -- class given to each year links
  • year_tag (default: p) -- tag around each year group
  • year_class (default: none) -- class for the tag around each year group
  • after_year (default: :) -- value after the year and before the list of months
  • month_link_class (default: month-link) -- class given to each month link
  • month_tag (default: span) -- tag around each month
  • after_month (default: &nbsp;) -- spacer between months
  • empty_month_class (default: empty-month) -- class applied to empty months (can use this to gray them out)
  • order (default: DESC) -- order the years are shown in (ASC for ascending, DESC for descending)

Advanced Usage

There is a function, get_smarter_archives(), that returns the raw array with the years, months, and post counts. You can use this for ultimate customization.

Example Usage

[smarter-archives order="DESC" after_month="&bull;"]

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

A full version of the license is included with the plugin in license.txt.

Compatible up to: 3.9.2
Last Updated: 2014-6-28
Downloads: 8,541

Ratings

3 stars
3.3 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
0,1,0
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1