F
F
FUMBACLOUD2020-04-26 21:44:50
WordPress
FUMBACLOUD, 2020-04-26 21:44:50

How to create child pages of a post?

I apologize in advance for a possibly crooked question.

Posts of various reviews are published on my site. How to add subpages to each post?

Visually:

testdomain.com/postlink/deteil

testdomain.com/postlink/picture

testdomain.com/postlink/links

and so on.

The content of the subpages is of course unique to each post and should ideally be defined within the post itself. There is an idea to display everything at once in tabs in the main post, and open after going to the subpage, but here's how to organize them and a question arose for those who know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-04-26
@azerphoenix

Hello!
As far as I know, you cannot assign other child posts to posts.
You may need to write your own custom solution.
But if you just need to display materials in tabs, then it will be a little simpler.
If your theme is on bootstrap, then use its features.
I would implement it like this:
Bootstrap + ACF. ACF Repeater (use a repeater for each tab). And then in the template, using bootsrap, display the repeater with tabs.
Here is a snippet of tabs:
https://bootsnipp.com/search?q=tab
I note that you can organize a direct transition to a tab via a link with a small js script.
testdomain.com/postlink/#picture

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question