Skip to content

Instantly share code, notes, and snippets.

@jrthib
Created July 16, 2013 00:13
Show Gist options
  • Select an option

  • Save jrthib/6004698 to your computer and use it in GitHub Desktop.

Select an option

Save jrthib/6004698 to your computer and use it in GitHub Desktop.
<?php
/**
* Page Template
*
* …
*
* @package Thematic
* @subpackage Templates
*/
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div class="content">
<?php jb_render_page(); ?>
</div>
<?php
// Get child pages
query_posts(array(
'post_parent' => get_the_ID(),
'post_type' => 'page',
'orderby' => 'menu_order',
'order' => 'ASC'
));
ob_start();
while(have_posts()): the_post();
echo "<div id=\"".$post->post_name."\">";
jb_render_page();
echo "</div>";
endwhile;
$pages = ob_get_contents();
ob_end_clean();
echo $pages;
?>
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// calling footer.php
get_footer();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment