Use 2 uploads folders. 1 for new media and 1 for old media

by Brian Cyclone Knox   Last Updated July 15, 2017 14:08 PM

I've been running a wordpress site for about 10 years and my uploads folder has become so large that when I try to upload new images I get an 'http error' every time. I disabled the uploads folder temporarily and defined a new uploads folder. Images upload with ease and no issues. Only problem is now every image that I had on the site before three days ago has become broken. I want to create a function in wp-config that if the post date is before July 11 2017 define the 'original uploads folder' but if the post date is after July 11th 2017 define the 'new uploads folder'. Is this possible and if so what variables would I use?



Related Questions



Uploads of Media Item as category

Updated June 03, 2017 14:08 PM