[wp-trac] [WordPress Trac] #17485: Sort Order by Date in WP Gallery resorts to order by ID

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 19 07:45:45 UTC 2011


#17485: Sort Order by Date in WP Gallery resorts to order by ID
-----------------------------------+-----------------------------
 Reporter:  nrajesh                |       Owner:  dd32
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  Future Release
Component:  Gallery                |     Version:  3.1.2
 Severity:  normal                 |  Resolution:
 Keywords:  3.3-early westi-likes  |
-----------------------------------+-----------------------------

Comment (by westi):

 Replying to [comment:12 azaozz]:
 > Replying to [comment:11 westi]:
 > > Note you can do: [gallery orderby="post_date"] at the moment in trunk
 so we could just hook the UI up to do that instead of [gallery
 orderby="ID"]
 > >
 > > EXPLAIN on both queries is the same:
 >
 > And the result of both queries is exactly the same :)

 Only if I haven't edited the dates to correct them to match when I took
 the photos.

 >
 > The problem here seems to be that upload time is often the same as
 creation time for photos, but not always. So the users may get confused.
 >

 I think in general upload time and creation time for photos are not the
 same.

 I think more people upload photos they took hours/days/weeks in the past
 than upload to WordPress straight from there camera.

 > Not sure it's good idea to set attachment creation time according to
 EXIF. IMO EXIF data belongs in postmeta.
 >
 > In any case we should expand the use of that data when available
 including rotating the image, (more?) camera details, creation time, etc.
 but that seems out of scope for this ticket.
 >
 > What we can do here is change the "Sort by: Date" to "Sort by: uploaded
 time" or similar which should remove any confusion.

 We can do that ... but ... sort by date the photo was taken is more useful
 to a Photoblogger than sort by upload time.

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


More information about the wp-trac mailing list