admin管理员组

文章数量:1391017

there!

Let's assume that we have 2 posts (Post A, Post B). They already exist and located like following example/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/cat1/post-a
  • Post B: example/cat2/post-b

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

there!

Let's assume that we have 2 posts (Post A, Post B). They already exist and located like following example/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/cat1/post-a
  • Post B: example/cat2/post-b

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

Share Improve this question edited Apr 6, 2020 at 23:34 Tom J Nowell 61.1k7 gold badges79 silver badges148 bronze badges asked Apr 6, 2020 at 23:13 Marta KheeMarta Khee 111 bronze badge 1
  • 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 Commented Apr 6, 2020 at 23:34
Add a comment  | 

1 Answer 1

Reset to default 0

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/cat1/post-a Post B: example/cat2/post-b

本文标签: customizationMove first half of posts to one parent pagesecond half to the other page