WordPress.org

Ready to get started?Download WordPress

Forums

Custom Upload Dir
[resolved] How to use Category slug as upload folder (2 posts)

  1. lellimecnar
    Member
    Posted 3 years ago #

    } else if($subdirs[$i] == 'post_cat'){
    $cat = get_the_category($cur_post->ID);
    if(!empty($cat)){
    $customdir .= $cat[0]->slug;
    }
    }

    http://wordpress.org/extend/plugins/custom-upload-dir/

  2. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    Using category and (all) categories is supported in the new Custom Upload Dir 3.0. Enjoy. :)

    (repo will update within 15 min)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic