[wp-trac] [WordPress Trac] #11725: Add start and count attributes to gallery shortcode

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 6 13:17:29 UTC 2010


#11725: Add start and count attributes to gallery shortcode
-----------------------------+----------------------------------------------
 Reporter:  frymi            |       Owner:             
     Type:  feature request  |      Status:  new        
 Priority:  normal           |   Milestone:  Unassigned 
Component:  Gallery          |     Version:  2.9.1      
 Severity:  normal           |    Keywords:  needs-patch
-----------------------------+----------------------------------------------

Comment(by hakre):

 Thanks for providing a patch and some code. I pretty much feel that this
 is more of hack than a pretty implementation - but your intentions are
 perfectly valid. If we provide such arguments I would like to see a
 gallery lookup function that returns the actual gallery images so that it
 can be used in other places as well, e.g. for other listings, gallery
 plugins and the like. Maybe a filter function which runs on $attachments
 can do the job as well, so there is no need to interfere with the foreach
 iteration.

 If not, this looks pretty much like a plugin to me that can filter the
 galleries output. To better support it we can add more hooks (I ran over
 the problem that galleries output can not be properly manipulated if you
 do not do any advanced workarounds).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11725#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list