从WordPress默认分类permalink结构中删除front

从WordPress默认分类permalink结构中删除front,wordpress,permalinks,taxonomy,Wordpress,Permalinks,Taxonomy,在WordPress中 我的permalink结构如下: example.com/blog/%postname%/ 这就是我想要的博客和帖子,但这会创建默认的分类permalink结构: example.com/blog/category/slug-here/ example.com/blog/tag/slug-here/ 相反,我需要它没有前面(“blog”),例如 我也在自定义文章类型上使用默认类别和标记,所以我不希望永久链接包含'/blog/'基 这只是将类别和标签的“前面”设置为fa

在WordPress中

我的permalink结构如下:

example.com/blog/%postname%/
这就是我想要的博客和帖子,但这会创建默认的分类permalink结构:

example.com/blog/category/slug-here/
example.com/blog/tag/slug-here/
相反,我需要它没有前面(“blog”),例如

我也在自定义文章类型上使用默认类别和标记,所以我不希望永久链接包含'/blog/'基

这只是将类别和标签的“前面”设置为false的问题吗?

找到了答案

在WordPress设置中,在永久链接下

当类别和标记库为空时,它们被设置为默认结构,只需在类别库中添加“类别”,在标记库中添加“标记”

example.com/category/slug-here/
example.com/tag/slug-here/