How to add a regular page under a custom post type?
I'm building a WordPress website that should have the following structure:
- Project A (project post type)
- About (regular page)
- Location (regular page)
- Partners (regular page)
- News (regular page)
- Project B (project post type)
- About (regular page)
- Book (regular page)
As you see, each project can have random pages below it. The admin should be able to add any page as he wants.
I found some solutions based on setting the hierarchical
attribute from my custom post type to true
and making it supports page-attributes
. Those don't fit my needs because it'll only make possible to add a project under another project.
There is a way to do what I need?
Topic hierarchical pages custom-post-types Wordpress
Category Web