Home

Indranil Dasgupta edited this page May 8, 2013 · 5 revisions
Clone this wiki locally

Plugin information etc. coming soon.

Basically, displays archives in a list.

Installation

Download/clone the repo, plop it into the wp-content/plugins directory of your WP installation, and activate the plugin.

Usage

Use <?php echo id_archives(); ?> in the templates or [id-archives] shortcode within the post.

Structure & Styling

This is the code which the plugin generates:

<div class="idarchives">
    <p>
        <strong><a href="/archives/date/2013">2013</a></strong>
        <span>Jan</span>
        <span>Feb</span>
        <span>Mar</span>
        <span>Apr</span>
        <span><a href="/archives/date/2013/05">May</a></span>
        <span>Jun</span>
        <span>Jul</span>
        <span>Aug</span>
        <span>Sep</span>
        <span>Oct</span>
        <span>Nov</span>
        <span>Dec</span>
    </p>
</div><!-- /idarchives -->

TODO

Expand archive listing to custom post types. Maybe an admin page for markup editing. Options - date based filters etc.