01
Jun
装上 Extended Live Archive 这个插件已经几天了,一直没有弄好,总算抽空在网上搜索了一下,按照时空驿站的教程,总算搞定了,呵呵。
1,首先保证你的PHP需要4.3以上的版本。
2,然后去Extended Live Archive Plugin下载最新的插件版本。
3,将下载的af-extended-live-archive解压,解压到af-extended-live-archive 文件夹,将该文件夹目录上传到wp-content/plugins里。
4,将本地解压后的af-extended-live-archive 文件夹里的includes目录下的af-ela-style.css上传到/wp-content/themes/default目录下。
附:default是默认的样式,如果你不是默认的样式就上传到你现在正在使用的样式的目录下
5,在本地新建一个PHP文件命名为Archives.php,里面是内容是:
- <?php
- /*
- Template Name: Archives
- */
- ?>
- <?php get_header(); ?>
- <?php if(function_exists(‘af_ela_super_archive‘))
- { af_ela_super_archive(‘menu_month=月份&menu_cat=文章分类‘);
- }
- ?>
- <?php get_footer(); ?>
然后上传到/wp-content/themes/default目录。
附:不一定非要命名为Archives.php,这个你可以自己任意命名。
6,然后在管理区新建一个page,标题为Archives,内容要为空,就是什么也不写,模板要选择Archives,不要选择缺省模板。
7,然后在/wp-content/themes/default目录中的header.php中”/head”之前,加入以下代码:
- <link rel=“stylesheet“href=“<?php bloginfo(’template_url’); ?>/af-ela-style.css“ type=“text/css“ />
8,最后去插件中心激活Extended Live Archives。













发表评论
字体为 粗体 是必填项目,邮箱地址 永远不会 公布。
允许部分 HTML 代码:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>URLs(网站链接)必须完整有效 (比如: http://coolife.org),所有标签都必须完整的关闭。
超出部分系统将会自动分段及换行。
请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 可能 会被编辑或删除。