Limit parameter for gallery shortcode


Warning: Attempt to read property "ID" on null in /var/www/u1618248/data/www/chooseplugin/wp-includes/media.php on line 2388

Warning: Attempt to read property "ID" on null in /var/www/u1618248/data/www/chooseplugin/wp-includes/media.php on line 2388

Warning: Attempt to read property "ID" on null in /var/www/u1618248/data/www/chooseplugin/wp-includes/media.php on line 2388

Adds a limit parameter to the shortcode.

Author:Nico Boehr (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:4.4.22
Plugin version:2.0
Added to WordPress repository:21-09-2014
Last updated:08-12-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:https://wordpress.org/plugins/limit-parameter...
Total downloads:1 318
Active installs:40+
plugin download
Click to start download

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:


When this plugin is activated, you may use:


and it will only display three images.

You can also use an offset parameter:


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

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


ChangeLog