You can clone with
The plugin comes with a shortcode which you can insert in any post or page content:
To display only the block, you can do:
Besides the shortcode, there is also a template tag, which you can insert into your theme's template files:
<?php smart_archives(); ?>
The template tag takes two parameters:
$sar_args = array(
'format' => 'fancy',
$query_args = array(
'post_type' => 'portfolio'
smart_archives( $sar_args, $query_args );
$sar_args is an array of parameters specific to the plugin. Normally, these are set via the admin settings page, but you can overwrite them:
$query_args is an array of parameters that will be used to get the list of posts. All the parameters that WP_Query accepts are also accepted here.
Last edited by scribu, June 27, 2012