Category Post Shortcode是一款在文章页猴子页面中使用wordpress Shortcode简码功能来显示指定分类文章的插件。
插件安装后,将以下简码插入到你的文章或者页面中:
[cat totalposts="3" category="1,3" thumbnail="true" excerpt="true" ]
参数说明:
分类文章的样式可以在你主题的style.css文件中设定,例如:
.cat-post{ width:100%; }
.cat-post-list{ display: block; margin-bottom: 20px; position: relative;}
.cat-post-images{ float:left; width:140px; display:block; }
.cat-content{ width:350px; float:right; }
.cat-post-title{ display: block; width:100%; }
.cat-post-date{ display: block; width:100%; }
.cat-clear{ clear:both; }
thumbnail缩略图设置
thumbnail缩略图是通过文章自定义字段“ thumbnail-url”添加的,如下图:
下载地址:http://wordpress.org/plugins/category-post-shortcode/