if (have_posts()) { while (have_posts()) { the_post(); ?> <?php the_content(); ?> <div class="clear"></div> <div id="members"> <?php define("BUSINESS_CARDS_POST_ID", 98); // 98 = Business card page $members = hh_get_page_children(BUSINESS_CARDS_POST_ID, "menu_order"); $i = 1; foreach ($members as $memberId => $member) { if ($i % 3 == 1 && $i != 0) { $cssClass = "alpha"; echo '<div class="clear"></div>'; } elseif ($i % 3 == 0) { $cssClass = "omega"; } else { $cssClass = ""; } ?> <div class="grid_2 team <?php echo $cssClass; ?> ">
function hh_generate_archive($parentPostId, $currentPostId) { $pages = hh_get_page_children($parentPostId, "menu_order"); $currentPost = get_page($currentPostId); foreach ($pages as $pageId => $page) { if ($page->ID != 98) { // 98 = Business Card page Id if ($page->ID == $currentPostId || $page->post_title == $currentPost->post_title) { $class = "active"; } else { $class = ""; } echo '<li><a href="' . get_page_link($page->ID) . '" class="' . $class . '">' . $page->post_title . '</a></li>'; } } }