Title: Show Post Shortcode
Author: Niraj Shah
Published: <strong>2009 年 5 月 7 日</strong>
Last modified: 2026 年 3 月 13 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/show-posts-shortcode.svg)

# Show Post Shortcode

 作者：[Niraj Shah](https://profiles.wordpress.org/nirajshah-1/)

[下载](https://downloads.wordpress.org/plugin/show-posts-shortcode.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/show-posts-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/show-posts-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/show-posts-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/show-posts-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/show-posts-shortcode/)

## 描述

This simple shortcode plugin allows you to list posts as a bulleted list linking
to the full article. You can limit
 the list to posts from a specific category and
you can select the number of posts to show. The `order` and orderby options lets
you sort the list too.

Usage is simple. Create a page or post and use the code `[showposts category="2"
num="4"]` – this will show
 all 4 posts from category 2. Another example `[showposts
category="1" num="-1" orderby="date" order="DESC"]` shows all the posts from category
1 ordered by the date (newest post first).

By default, only 5 posts are shown (unless you use the `num` option) and sorting
in by date (oldest to newest).

### Example

You can see two examples of the code working at the following links:

 * https://www.xtremeps3.com/ps5-firmware-history/
 * https://www.xtremeps3.com/firmware-history/
 * https://www.xtremeps3.com/faqs/

### Usage

The shortcode is `[showposts]`

You can use the following parameters to customize what is displayed (all are optional):

    ```
    [showposts category="2" num="4" orderby="date" order="DESC"]
    ```

Set `order` to one of the following:

 * `author` – Sort by the numeric author IDs.
 * `category` – Sort by the numeric category IDs.
 * `content` – Sort by content.
 * `date` – Sort by creation date.
 * `ID` – Sort by numeric post ID.
 * `menu_order` – Sort by the menu order. Only useful with pages.
 * `mime_type` – Sort by MIME type. Only useful with attachments.
 * `modified` – Sort by last modified date.
 * `name` – Sort by stub.
 * `parent` – Sort by parent ID.
 * `password` – Sort by password.
 * `rand` – Randomly sort results.
 * `status` – Sort by status.
 * `title` – Sort by title.
 * `type` – Sort by type.
 * orderby can be one the following:
 * DESC
 * ASC

## 安装

 1. Upload `show-posts-shortcode.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `[showposts category="2" num="4"]` in your post or pages

## 评价

此插件暂无评价。

## 贡献者及开发者

「Show Post Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Niraj Shah ](https://profiles.wordpress.org/nirajshah-1/)

[帮助将「Show Post Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/show-posts-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/show-posts-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/show-posts-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/show-posts-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/show-posts-shortcode/)。

## 额外信息

 *  版本 **0.1**
 *  最后更新：**3 月前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/show-posts-shortcode/)
 * 标签
 * [list](https://cn.wordpress.org/plugins/tags/list/)[posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/show-posts-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/show-posts-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/show-posts-shortcode/reviews/)

## 贡献者

 *   [ Niraj Shah ](https://profiles.wordpress.org/nirajshah-1/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/show-posts-shortcode/)