This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

EZ Post Archives



  • Allows you to easily generate an archive list by year or month – very similar to the wp_get_archives() function
  • Generates necessary rewrite rules
  • Generates SEO friendly title tags for archive templates
  • Allows use of archive templates (archive.php or archive-{post-type}.php)
  • Allows easy generation of necessary template headings

Generate archive list


$args = array(
    'post_type' => '',
    // the slug(s) of the custom post type.
    // must use an array if using multiple post types

    'limit' => 12,
    // sets the number of archives pulled in

    'type' => 'yearly',
    // either yearly or monthly

    'taxonomy' => null,
    // optional taxonomy

    'term' => null,
    // optional term

    'month_format' => '<a href="{{link}}">{{month}} {{year}}</a>',
    // format for monthly links

    'year_format' => '<a href="{{link}}">{{year}}</a>',
    // format for yearly links

    'month_name_format' => 'M'
    // see the PHP date() function for reference

Generate page heading


Template files


CSS Helpers

If you use the body_class() function, the plugin will add the following classes to your
body tag:

  • ez-post-archives
  • ez-post-archives-{post-slug}

Know what template you’re on

If you need to check if you are on an archive page use the is_post_type_archive() conditional function


  1. Using the WordPress plugin installer tool simply upload the file


My archive links aren’t working!

If you create a new post type after the plugin is installed you will need to flush the rewrite rules. You can do this
by going to Settings > Permalinks and simply clicking the “Save Changes” button.

Contributors & Developers

“EZ Post Archives” is open source software. The following people have contributed to this plugin.


Translate “EZ Post Archives” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fixed fatal error with get_called_class() in PHP version < 5.3


  • Added support for multiple post types
  • Fixed misc bugs


  • Added support for taxonomy archives


  • Initial version