• Dear fellow bloggers,

    Is there a plugin where I can set the uploads folder to whatever I want, for every post ?

    For instance, if I have a post titled “My Holiday photo’s”, the media uploadpath would normally be like this: /uploads/2009/12/photo.jpg
    But I want it to be like: /uploads/holiday/photo.jpeg
    And the Upload Dir Plugin makes it like this: /uploads/my-holiday-photos/photo.jpeg (uploads/%posttitle%)

    Any thought is welcome. But i’m hoping there would be a plugin out there which allows to me custom name the directory.

    Kind regards,

    Oscar, (website: INVEVE)

    In case you wonder: I’m a perfectionist, that’s why ;).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Take a look at how the ‘Uploads Dir Plugin’ does it. I’ve done it by creating a callback function for the ‘upload_dir’ filter.

    Thread Starter aminozuur

    (@aminozuur)

    @apljdi
    Thanks for your reply. I’ve checked in the settings of the Upload Dir plugin but I couldn’t find anything about the ‘upload_dir’ filter. I’m know HTML & CSS but nothing about PHP. And I don’t know what a ‘callback’ function is :P. So what should I do ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to custom name my uploads directory for every post?’ is closed to new replies.