Deze plugin is niet getest met de laatste drie grote versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Er kunnen ook compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Limit parameter for gallery shortcode

Beschrijving

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.

Installatie

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

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Limit parameter for gallery shortcode” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Changelog

2.0

Added offset parameter.

1.0

First release.