admin管理员组文章数量:1130349
We are working in a new website and having issues with duplicate categories slugs from "posts" and "pages". We are trying to develop the same structure of this website: .
We started with the News category:
- home/city1/news/politics
- home/city2/news/politics
1) We tried with nested categories without success. The problem is that when we create the child category "news" for the second city, Wordpress set automatically the slug to "news-2". This seems to be the Wordpress behavior by default.
2) Then we tried with Custom Posts Types. After installing the Pods plugin, we created "City1" and "City2" custom posts types with "city1" and "city2" as their slugs. Then we created for them their own category "news" and its child category "politics".
When we visit City1 and News pages everything works fine. We can see the web page and the custom posts inserted in them. But when we navigate to the third level "Politics" page, wordpress can't found it.
There is a chance that Coconuts use a Multisite wordpress installation, but we would like to obtain the same structure in a single wordpress installation.
Any help will be appreciated.
Kind regards.
We are working in a new website and having issues with duplicate categories slugs from "posts" and "pages". We are trying to develop the same structure of this website: .
We started with the News category:
- home/city1/news/politics
- home/city2/news/politics
1) We tried with nested categories without success. The problem is that when we create the child category "news" for the second city, Wordpress set automatically the slug to "news-2". This seems to be the Wordpress behavior by default.
2) Then we tried with Custom Posts Types. After installing the Pods plugin, we created "City1" and "City2" custom posts types with "city1" and "city2" as their slugs. Then we created for them their own category "news" and its child category "politics".
When we visit City1 and News pages everything works fine. We can see the web page and the custom posts inserted in them. But when we navigate to the third level "Politics" page, wordpress can't found it.
There is a chance that Coconuts use a Multisite wordpress installation, but we would like to obtain the same structure in a single wordpress installation.
Any help will be appreciated.
Kind regards.
本文标签: pods frameworkDuplicate category slugs from pages and posts
版权声明:本文标题:pods framework - Duplicate category slugs from pages and posts 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749249936a2339528.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论