跳到内容

CC-List-Posts

v1.0.1

Clearcode · 2016年12月27日 上架

This plugin adds similar to wp_list_pages, missing function and shortcode wp_list_posts with pagination support.

正在使用
10+
评分
暂无
累计下载
1,783
最近更新
2022年3月16日
需要 WordPress 4.7+已测试到 5.9.21

截图

CC-List-Posts Shortcode - Visit the 'Post/Page Editor' and add [wp_list_posts] shortcode.
CC-List-Posts Shortcode - Visit the 'Post/Page Editor' and add [wp_list_posts] shortcode.

The CC-List-Posts plugin works out of the box.
There is no settings page for it.
After activation you can start using wp_list_posts function and/or shortcode with the parameters listed below.

Notice: the plugin can be used with the wp_link_pages built-in functionality if you use pagination parameter with integer value.

Defaults

  • before: (string) <ul>,
  • after: (string) </ul>,
  • link_before: (string) empty string,
  • link_after: (string) empty string,
  • type: (string) postbypost,
  • echo: (integer) 0,
  • pagination: (boolean|integer) false,
  • format: (string) html
  • type: (string) monthly,
  • limit: (string) empty string,
  • show_post_count: (boolean) false,
  • order: (string) DESC,
  • post_type: (string) post

Notice: plugin uses wp_get_archives function to list posts, so you can also use additional parameters. A full list is available at WordPress codex page documentation.

wp_list_posts parameter mapped to wp_get_archives

  • link_before: before
  • link_after: after

Default usage

  • Function: wp_list_posts( array( 'pagination' => 50 ) )
  • Shortcode: [wp_list_posts pagination=50]

Plums

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

导航

说明

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

© 2026 Plums