Php Wordpress类别URL路径更改
我有一个职位列表,每个职位分配到一个或多个类别 当我查看Category1页面中的帖子列表时,URL路径为: url.com/Category1 但我有一篇文章被分为第一类和第二类。当我点击该帖子时,url路径变为url.com/Category2/postName 我的问题是,如何使我在查看Category1中的帖子时,路径保持为url.com/Category1/postName,而不是更改为其他标记的类别。根据官方消息: 因此,每当您将多个类别分配给一篇文章时,WordPress将自动选择其中一个类别来创建文章URL。请记住,这些类别是按字母顺序排列的,选择将相应地进行 您可以通过始终为帖子指定单个类别来避免这种情况Php Wordpress类别URL路径更改,php,wordpress,categories,Php,Wordpress,Categories,我有一个职位列表,每个职位分配到一个或多个类别 当我查看Category1页面中的帖子列表时,URL路径为: url.com/Category1 但我有一篇文章被分为第一类和第二类。当我点击该帖子时,url路径变为url.com/Category2/postName 我的问题是,如何使我在查看Category1中的帖子时,路径保持为url.com/Category1/postName,而不是更改为其他标记的类别。根据官方消息: 因此,每当您将多个类别分配给一篇文章时,WordPress将自动选择
When you assign multiple categories to a post, only one can show up in the permalink. The categories are ordered alphabetically. In each group of sub-categories the order will also be alphabetical. (see Manage Categories). The post will still be accessible through all the categories as normal.