Categories hierarchy in url sends to 404

First of all, hope that you are all doing great.

I am trying to set permalinks for custom post types as
base/category/child-category/postname by using /%category%/%postname% with the help of the plugin “custom post type permalinks”.

While the url is created as I want it to be, it sends me to 404 but these links works and are both sending me to the same page :
base/category/postname | base/child-category/postname

I think somehow that they aren’t considered as parent child, even though I checked it millions of times now.

The categories are both in WP core.

Thanks is advance for your help.

Read more here:: Categories hierarchy in url sends to 404

Leave a Reply

Your email address will not be published. Required fields are marked *