admin管理员组文章数量:1415120
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 badges1 Answer
Reset to default 1There 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.
本文标签: uploadsOrganizing uploaded Media in permalinkbased folder structure
版权声明:本文标题:uploads - Organizing uploaded Media in permalink-based folder structure? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745210863a2647876.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论