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://tw.wordpress.org/plugins/show-posts-shortcode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/show-posts-shortcode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/show-posts-shortcode/#installation)
 * [開發資訊](https://tw.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**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 2.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/show-posts-shortcode/)
 * 標籤:
 * [list](https://tw.wordpress.org/plugins/tags/list/)[posts](https://tw.wordpress.org/plugins/tags/posts/)
 *  [進階檢視](https://tw.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/)