• Hello,

    How can I define the UPLOADS folder dynamically?

    E.g., something like:

    define(‘UPLOADS’, ‘wp-content/myuploads/’. substr(md5(POST_ID),0,3) );

    If I put this on wp-config.php I will not have the correct folder.

    Also, instead of a folder based on a date I want it to be customized for MD5.

    Can you give me an hint?

    Thanks.

The topic ‘How to define a automatic UPLOAD folder based on POST_ID?’ is closed to new replies.