uploads - Organizing uploaded Media in permalink-based folder structure?

Wordpress seems to like storing files by yearmonth. This is nice, but not good enough for busy websites with loads of c

Wordpress seems to like storing files by year/month. This is nice, but not good enough for busy websites with loads of content. It'll be much nicer to have the folders reflect the exact same structure as the permalinks for them:

/wp-content/uploads/custom-post-type/category/postname-1.jpg
/wp-content/uploads/books/fiction/the-nun-1.jpg
/wp-content/uploads/books/romance/the-italian-spring.jpg

And so on. Is it possible to do this with some simple customized function in functions.php, or via some plugin?

Thanks for any pointers.

Wordpress seems to like storing files by year/month. This is nice, but not good enough for busy websites with loads of content. It'll be much nicer to have the folders reflect the exact same structure as the permalinks for them:

/wp-content/uploads/custom-post-type/category/postname-1.jpg
/wp-content/uploads/books/fiction/the-nun-1.jpg
/wp-content/uploads/books/romance/the-italian-spring.jpg

And so on. Is it possible to do this with some simple customized function in functions.php, or via some plugin?

Thanks for any pointers.

Share Improve this question asked Aug 25, 2019 at 13:12 Khom NazidKhom Nazid 17110 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

There is another thread discussing this, with multiple answers. You might check to see if they address your desires. They offer some code, and an available plugin solution.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745210864a4616830.html

相关推荐

  • uploads - Organizing uploaded Media in permalink-based folder structure?

    Wordpress seems to like storing files by yearmonth. This is nice, but not good enough for busy websites with loads of c

    5小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信