作者: Alex King
一、作用
The Articles plugin allows you to display a list of posts you wish to feature/highlight.
允许你在post或者page页面中显示一个文章列表。
二、安装
1. 下载插件并解压
2. 上传 articles.php 到wp-content/plugins/ 目录
3. 进入管理页面的 Plugins 激活你的插件
4. 进入 Options 页面设置插件
三、选择需要加入列表的文章
在post页面(发表文章)中底部增加一个custom field,设置为:
Key: article
Value: 1
四、如何显示文章列表
可以通过两种方法显示列表:
1. Token Method(直接显示的方法)
默认显示方法,也是最简单的方法,你只需要在你的post(发表文章)页面或者page内容中,加入如下代码(请确认你已经完成了第三步):
# # #articles# # #
注意:把#之间的空格去掉
2、Template Tag Method(模板修改方法)
你还可以在模板中通过添加一下代码显示文章列表:
<?php aka_show_articles();?>