Learn How to Install Smart Archives v1.9 WordPress Plugin

If you are not expert like me, may be you will spend some time to install smart archives v1.9 WordPress plugin in your blog. Do you know that I have spent few days time to learn how to install smart archives v1.9 in my blog? I do not wish you like me spent so much time to learn and explore, that’s the reason why I write this post for sharing and I hope this post can help you.

If you are using WordPress “Page” features, follow the steps below will do.
1. Download Smart Archives v1.9
2. Change the file extension from “.phps” to “.php”
3. Activate the plugin from the WordPress admin panel
4. Duplicated your page.php and change it to another name, let say page-archives.php. Put the following code at very top of page of page-archives.php

<?php
/*
Template Name: page-archive
*/
?>

5. Copy and paste the following function to page-archives.php. Refer following example:-

<?php get_header(); ?>
<div id=”content”>
<div id=”contentleft”>
<?php smartArchives() ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__(‘Read more’));?><div style=”clear:both;”></div>
<bR /><Br /><br /><br /><br />
<!–
<?php trackback_rdf(); ?>
–>

<?php endwhile; else: ?>

<?php _e(‘Sorry, no posts matched your criteria.’); ?><?php endif; ?>
<?php posts_nav_link(‘ — ‘, __(‘« go back’), __(‘keep looking »’)); ?>
</div>
</div>
<?php get_footer(); ?>

6. Log in WordPress and write new page
7. Look at right hand sidebar of WordPress new page
8. Select “Page-Archives” for the Page Template
9. You do not need to write anything in this page, just give a new Page name and save it, that’s all.

If you have any question, please leave your comment here and I will try my very best to help you out. To see an example of smart achieve in my blog, click here!


Leave a Reply