plugin-icon

Limit parameter for gallery shortcode

제작자: nboehr·
Adds a limit parameter to the [gallery] shortcode.
등급
5/5
버전
2.0
활성화된 설치 항목
30
최근 업데이트일
Dec 8, 2016

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.

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 4.4.34
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.