最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

pods framework - Duplicate category slugs from pages and posts

matteradmin9PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far