0

I have a custom post type called 'Inspections'

Doing this, you can access an inspection record by going to example.com/inspections/inspection-slug-here

However, I want to add some 'sub-pages' if you will:

/inspections/<inspection-slug-here>/sub-page1
/inspections/<inspection-slug-here>/sub-page2

In this case, I would really like sub-page1 and sub-page2 to be templates that I can author in elementor, or something similar.

In a perfect scenario, I would like to pass the details of the parent (inspection-slug-here) to be loaded in this sub section so I can use custom fields or something of the likes.

Is there anything out there that does this? I am using elementor and an elementor templates tool, but cannot find any ways to do what i want.

Thanks!

0

2 Answers 2

0

If you are interested in using Plugin, and to add PHP code directly into your Elementor, try the following plugin which will enable to add PHP code directly into your Elementor pages.

https://wordpress.org/plugins/php-everywhere/

0

You can create a custom Single template and when saving it, set the display conditions to the posts you want.

enter image description here

enter image description here

2
  • This does not answer the question at all unfortunately. The question is how can I map a static page to all pages of a CPT. Creating all these manually would be quite tiresome. May 27, 2020 at 1:59
  • You'd just select 'All' in that case.
    – Himad
    May 27, 2020 at 9:41

Your Answer

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

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