SmartArchives failure
February 16th, 2008 Filed under Blog on blog
I really like the way that SmartArchives presents. So I decided to install the smartArchives plug-in. It says very easy to inplement this plug-in which only needs you to upload, activate and insert one of the following codes into your WordPress page.
<?php smartArchives(‘block’,’14′); ?>
<?php smartArchives(‘list’,”); ?>
<?php smartArchives(”,”); ?>
<?php smartArchives(‘both’,’14 20 1′); ?>
I created a page named Archives and copy one of the lines into the text box under Code mode and published it. The Archives page did appears but without no content generated by SmartArchives. So I went to the dashboard to check what’s wrong with the plugin. I openned the Archives page at backstage and switch to Code mode only to find that my original code “<?php smartArchives(”,”); ?>” had been changed into <!–p smartArchives(”,”);–> automatically. I tried many times and finally found a way to solve this problem. My solution is replace the original simple code with a complicated one:
<div>
<?php if (function_exists(‘smartArchives’)) {
echo (‘<span> </span><br />’);
smartArchives(‘block’,”);
} ?>
</div>
Now I have the Archives page I wanted. If you want to see what SmartArchives can do, just see this page.
SmartArchives调用无效:我想为我的博客增加一页Archives,所以就尝试把<?php smartArchives(”,”); ?>在Write Page的code形式下插入,保存后查看Archives页,但是没有任何输出。我回到后台编辑模式,结果发现系统自动将这段代码变成了<!–p smartArchives(”,”);–>,请问这是怎么回事?
Tags: Auto, SmartArchivesNo Response
Come on buddy, give some response.

