最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

blog - Put post urls into their own category

programmeradmin0浏览0评论

I'm trying to update a blog post url to have its own parent. For example I want to change this url from:

test/blog/my-post

to

test/blog/category/my-post

When updating in the edit post page, it reverts back to the original. Do I need a custom post type or something? Thanks!

I'm trying to update a blog post url to have its own parent. For example I want to change this url from:

test/blog/my-post

to

test/blog/category/my-post

When updating in the edit post page, it reverts back to the original. Do I need a custom post type or something? Thanks!

Share Improve this question asked Jun 2, 2020 at 17:13 cup_ofcup_of 2191 gold badge4 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

You can't add subfolders on individual posts. You can go to Settings > Permalinks and set it up there - you'll want to use a custom structure:

/blog/%category%/%postname%/

发布评论

评论列表(0)

  1. 暂无评论