WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6552 closed enhancement (wontfix)

When adding photos to a post, there should be an option to make Wordpress recognize you are updating an old post to store the photos according to the date when it was first published.

Reported by: giovanealex Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Optimization Keywords: media gallery, gallery hierarchy, old posts, date-based hierarchy, photo upload hierarchy
Focuses: Cc:

Description

When adding photos to a post, Wordpress stores them inside the "uploads" folder on a year/month-based folder hierarchy. It does make sense when you are writing a new post but none when you are updating an old post, trying to get rid of old gallery solutions in place of the new Wordpress built-in media gallery. So, there should be an option to avoid this default configuration and make Wordpress recognize you are updating an old post to store the photos according to the date when it was first published.

Thanks you very much in advance.

Change History (3)

comment:1 andy6 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Can be done easily in a plugin: filter upload_dir and use $_POSTpost_id?.

comment:2 lloydbudd6 years ago

  • Milestone 2.5.1 deleted

comment:3 DD326 years ago

It does make sense when you are writing a new post but none when you are updating an old post, trying to get rid of old gallery solutions in place of the new Wordpress built-in media gallery.

Just a note here, My plugin "Add From Server" is designed to import files from the severs hard drive into the uploads folder for a post. Currently it sorts the files into upload folders based on when it was created, Eg. if you import a image from December 2007, ir sorts it into /2007/12/image.jpg

It can make it a fair bit easier when importing older images http://wordpress.org/extend/plugins/add-from-server/

Note: See TracTickets for help on using tickets.