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

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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Limit parameter for gallery shortcode” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

2.0

Added offset parameter.

1.0

First release.