Page Parent and Children – specific sidebar
-
Hello,
The problem I am having is trying to have a specific sidebar layout show up for a certain page and its child pages. The sidebar list shows up for the page but not its child pages. Below is a snippet from my sidebar.php file.
<?php if (is_page(’71’) || $post->post_parent == ’71’ ) {?>
<div class=”widget”>
<h4>Office Cubicles</h4>
<ul id=”side-nav”>
<?php wp_list_pages(‘title_li=&child_of=71&depth=1’); ?></div><!–.widget–>
<?php } else {} ?>
If more information or clarification is needed, feel free to ask.
Thanks for any help.Brandon
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Page Parent and Children – specific sidebar’ is closed to new replies.