Title: Limit parameter for gallery shortcode
Author: nboehr
Published: <strong>2014 年 9 月 21 日</strong>
Last modified: 2016 年 12 月 8 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/limit-parameter-for-gallery-shortcode.
svg)

# Limit parameter for gallery shortcode

 由 [nboehr](https://profiles.wordpress.org/nboehr/) 開發

[下載](https://downloads.wordpress.org/plugin/limit-parameter-for-gallery-shortcode.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/limit-parameter-for-gallery-shortcode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/limit-parameter-for-gallery-shortcode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/limit-parameter-for-gallery-shortcode/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/limit-parameter-for-gallery-shortcode/#developers)

 [技術支援](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/)

## 外掛說明

By default, the gallery shortcode does not allow to limit the number of images displayed.
This makes sense when you for example include all images attached to a post like
this:

    ```
    [gallery id="4"]
    ```

When this plugin is activated, you may use:

    ```
    [gallery id="4" limit="3"]
    ```

and it will only display three images.

You can also use an offset parameter:

    ```
    [gallery id="4" limit="3" offset="1"]
    ```

Will display at most three images, starting at the second.

Note that this plugin is a little bit of a hack.

## 安裝方式

 1. Upload the `gallery-limit.php` file to the plugin directory.
 2. Activate the plugin.
 3. Done.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Limit parameter for gallery shortcode〉的開發相關工作。

參與者

 *   [ nboehr ](https://profiles.wordpress.org/nboehr/)

[將〈Limit parameter for gallery shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/limit-parameter-for-gallery-shortcode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/limit-parameter-for-gallery-shortcode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/limit-parameter-for-gallery-shortcode/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/limit-parameter-for-gallery-shortcode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/limit-parameter-for-gallery-shortcode/)。

## 變更記錄

#### 2.0

Added offset parameter.

#### 1.0

First release.

## 中繼資料

 *  版本 **2.0**
 *  最後更新 **9 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/limit-parameter-for-gallery-shortcode/)
 * 標籤:
 * [gallery](https://tw.wordpress.org/plugins/tags/gallery/)[images](https://tw.wordpress.org/plugins/tags/images/)
   [limit](https://tw.wordpress.org/plugins/tags/limit/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/limit-parameter-for-gallery-shortcode/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/reviews/)

## 參與者

 *   [ nboehr ](https://profiles.wordpress.org/nboehr/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/limit-parameter-for-gallery-shortcode/)