Okay here it is….
i created a sub sub page menu. I had already contructed a template page called gallery.php. Here’s the code for other to look at.
<?php
/*
Template Name: Gallery
*/
?>
<!—header—>
<?php get_header(); ?>
<!—sub page navagtion—>
<div id=”subpagemenu”>
<?php include (TEMPLATEPATH . ‘/sub page menu.php’); ?>
</div>
<!—sub sub page menu—>
<div id=”subsubpagemenu”>
<?php include (TEMPLATEPATH . ‘/sub sub page menu.php’); ?>
</div>
<!—Content of Page—>
<div id=”content” class=”widecolumn”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<!–Removed Repeating Page Heading—>
<h2><!—?php the_title(); ?—></h2>
<div class=”entrytext”>
<?php the_content(‘<p class=”serif”>Read the rest of this page »’); ?>
<?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
</div>
</div>
<!— <?php if(wp_list_pages(“child_of=”.$post->ID.”&echo=0″)) { ?>
<?php wp_list_pages(“title_li=&child_of=”.$post->ID.”&sort_column=menu_order&show_date=modified&date_format=$date_format”);?>
<?php } ?> —>
<?php endwhile; endif; ?>
<?php edit_post_link(‘Edit this entry.’, ”, ”); ?>
</div>
<!—Footer—>
<?php get_footer(); ?>
This should be your first sub page menu that you call in the gallery temp.
<?php if (is_page()) { ?>
<?php $g_page_id = $wp_query->get_queried_object_id(); ?>
<!—<?php the_title(‘<h2>’, ‘</h2>’); ?>—>
<h2><?php wp_list_pages(“depth=1&title_li=&child_of=”.$g_page_id=’27’.”&sort_column=menu_order”); ?></h2>
<?php } ?>
<hr />
The trick here was setting the page_id to become staticly set on the first level child of my gallery page.
My gallery page id was 27.
.$g_page_id=’27’.
The sub sub page menu should look like this.
<?php if (is_page()) { ?>
<?php $g_page_id = $wp_query->get_queried_object_id(); ?>
<!—<?php the_title(‘<h2>’, ‘</h2>’); ?>—>
<h2><?php wp_list_pages(“exclude=48,66&depth=3&title_li=&child_of=”.$g_page_id.”&sort_column=menu_order”); ?></h2>
<?php } ?>
<hr />
Yes, ryan you were right about the depth =’s 3. The trick was setting the exclude to the child pages of my gallery.
exclude=48,66
hey, thanks agian.
go to dannycastillo.com to see it work.