A
A
Anton2018-03-12 01:47:45
WordPress
Anton, 2018-03-12 01:47:45

How to make a layered structure in WordPress?

The essence of the question is as follows:
1. The site has a type of records "Records"
2. Personalities, stars are placed in these records.
A single person is displayed at site.com/id1
I need to create parent pages for id1, id2, id3, and so on.
For example site.com/id1/biography
site.com/id1/news
site.com/id1/comments
That is, at /id1/ I display only brief information about the person, but if the user is interested in the biography, then he goes to the address id1/biography.
Moreover, the full text of the biography is taken from id1. I need to figure out how to make the full biography open at id1/biography.
The option with tabs and tabs does not suit .. in this case, the address will be id1#biography. The output is necessary on a subpage.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
elenapetrova1995, 2018-03-12
@elenapetrova1995

Hello.
Look towards add_rewrite_endpoint

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question