[wp-trac] [WordPress Trac] #27058: Patch: Limit parameter for [gallery] shortcode
WordPress Trac
noreply at wordpress.org
Fri Feb 7 21:12:24 UTC 2014
#27058: Patch: Limit parameter for [gallery] shortcode
-------------------------+-----------------------------
Reporter: nboehr | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
The gallery shortcode does not allow to limit the number of images
displayed.
The attached patch adds this functionality. The default behaviour is not
changed, i.e. by default, all images are displayed. The new parameter is
called limit. Also, if you explicitly specifiy the IDs via include=, ids=
or exclude=, all images are displayed, regardless of whether the parameter
is specified or not. If you guys think that this behaviour is not optimal,
please add your comments so I can adjust the patch.
Example usage:
{{{
[gallery id="57" limit=3]
}}}
The patch is against the latest HEAD revision 26993.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27058>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list