Let's assume that we have 2 posts (Post A, Post B). They already exist and located like following example.com/post-a

Now I want to create 2 separate parent pages like cat1 and cat2.

How can I rearrange posts and get something like that:

  • Post A: example.com/cat1/post-a
  • Post B: example.com/cat2/post-b

And when I open example.com/cat1 I want to have list of post from cat1.

  • 1
    This sounds like a category archive, is there a reason you don't just use categories and category.php? What's the problem that this solves?
    – Tom J Nowell
    Apr 6, 2020 at 23:34

1 Answer 1


As per your requirement, Just create two categories like cat1 and cat2. After that, you can assign categories from the Post A and Post B.

Then Wordpress creates the default URL Like this:

Post A: example.com/cat1/post-a Post B: example.com/cat2/post-b

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.