[wp-trac] [WordPress Trac] #12799: Allow gallery shortcode to accept a maximum number of items
WordPress Trac
noreply at wordpress.org
Mon Oct 12 19:26:11 UTC 2015
#12799: Allow gallery shortcode to accept a maximum number of items
------------------------------------+------------------
Reporter: dtorbert | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 4.4
Component: Gallery | Version: 2.9
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+------------------
Changes (by antpb):
* keywords: dev-feedback needs-refresh needs-docs => dev-feedback has-
patch
* milestone: Future Release => 4.4
Comment:
Woot! Below is the new patch. Tested on the nightly and it seems to be
working like a charm now! After using it, I really like the addition. I
think it could be useful. It's kinda cool refreshing the page and getting
random images.
I went with ```maxdisp``` as the shortcode attribute for the sake of
keeping it short and sweet. Also added docs to the shortcode listing.
Usage looks like the below shortcode:
```[gallery include="8,7,6,5,4" maxdisp="2" orderby="rand"]```
Would still like a lead dev to thumbs up this so leaving dev feedback.
Patch below!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12799#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list