Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parentpage (Templatename: parentpage)
- - Child A (Templatename: childpage)
- - Child B (Templatename: childpage)
- -- SecondChild B (Templatename: secondchildpage)
- - Child C (Templatename: childpage)
- <?php
- getchilds = array(
- 'parent' => $post->ID,
- 'child_of' => $post->ID,
- 'sort_column' => 'menu_order',
- 'sort_order' => 'ASC'
- );
- $postliset = get_pages($getchilds);
- foreach ($postliste as $post) {
- echo $post->post_content;
- }
- ?>
- <div class="childpagestest">
- [...]
- <?php the_content(); ?>
- [...]
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement