Insert sub page (child page)
-
I have used Insert Pages for quite a while to insert pieces of content which I isolate in a custom post type called “fragments” (ugly name, I know). Recently it occurred to me that it might be simpler to manage some of these “fragments” as child pages.
I copied the content of a fragment with the slug ‘home-five-challenges’ into a new subpage of home called “five-challenges,” using the same template. It displays as expected when I preview the sub page.
I changed the relevant shortcode on the home page
from the CPT ‘fragment’ slug
[insert page=’home-five-challenges’ display=’content’]
to the sub page slug ” [insert page=’five-challenges’ display=’content’] ”This didn’t display the subpage. However, it works if add the parent page to the shortcode (page=’home/five-challenges’).
I’m happy that this works — just wondering why ??
Cheers,
Bruce
- The topic ‘Insert sub page (child page)’ is closed to new replies.