I am trying to have a permalink strucutre as follows:

/category
/category/child-category
/category/post-slug

My permalink settings is as follows:

/%category%/%postname%/

The category base is blank.

But if I go to /category/child-category, the link 404s. It only works when I go to /child-category. Also, the post URL only works as follows:

/category/child-category/post-slug/

What would I need to do to have the permalink strucutre that I am trying to accomplish?

Read more here: Custom Permalink with child categories creating 404


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: