跳到内容

L7 Display Posts

v0.1.1

Jeff · 2015年12月7日 上架

Efficiently show posts by tag or category using a simple shortcode. Utilizes caching for greater speed and fewer database calls.

正在使用
10+
评分
5.0 / 5
累计下载
2,031
最近更新
2016年3月30日
1 条评价需要 WordPress 4.1.1+已测试到 4.4.34

贡献者

Use a shortcode to display your posts. Display them by tag, number of posts, order (asc, desc), orderby (date, time created, none, ID, author, title, parent, rand), pagination (pages), and display the results in one column or two.

Intended to be used with object caching (memcache) for maximum efficiency.

[Display Posts tag=’a tag’ pages=’true’ posts=’7′ order=’desc’ orderby=’date’]

cat

  • Category name. Add multiple categories separated by commas. (Note: Using cat and tag will increase query load dramatically)

tag

  • Tag name. Add mulitiple tags separated by commas.

pages

  • True or false. Display the posts with pagination or all on one page.

posts

  • Number of posts to display. If pages is true it is the number of posts per page.

order

  • Display the posts in descending or ascending order.

orderby (There are many options including)

  • date
  • time created
  • none
  • ID
  • author
  • title
  • parent
  • rand

Requires PHP version 5.3.0 or greater.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums