WordPress.org

Ready to get started?Download WordPress

Forums

Child Page Shows on Main Page But... (1 post)

  1. estjohn
    Member
    Posted 6 years ago #

    On this site, I am using roundflow-10 for a theme

    On the About Page, it shows the Child pages in the grey navigation

    But, if I click on the Child Navigation and goto a Child Page, it does not show the Child Navigation Bar.

    For example, Privacy

    The code in the theme for this is

    <div id="navigation">
    <ul>
    <li><a href="<?php bloginfo('home'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&title_li=&depth=1'); ?></ul>
    </div>
    
    <?php if(is_page() && wp_list_pages("child_of=".$post->ID."&echo=0")) { ?>
    <div id="childnavigation">
    <ul>
    <?php wp_list_pages("title_li=&child_of=".$post->ID."&sort_column=menu_order");?>
    </ul>
    </div>
    <?php } ?>

    How could I change this? I have tried some other examples posted in the forums using IF statements, but I was not able to get it to work correctly and mainly got errors.

Topic Closed

This topic has been closed to new replies.

About this Topic