[wp-trac] [WordPress Trac] #29291: Media IDs in gallery shortcode : allow ranges of ids

WordPress Trac noreply at wordpress.org
Wed Aug 20 23:45:38 UTC 2014


#29291: Media IDs in gallery shortcode : allow ranges of ids
-------------------------+-----------------------------
 Reporter:  grosbouff    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Gallery      |    Version:  3.9.2
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Hi,
 I have a lot of galleries with a lot of images in it.
 Usually, media IDs are in order, So I have something like this for
 shortcode :


 {{{
 [gallery
 ids="266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,306,307,308,309,310"]
 }}}


 It would be nice being able to use id ranges, like :


 {{{
 [gallery ids="266-298,306-310"]
 }}}


 (like printer drivers do !)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29291>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list