WordPress.org

Support

Support » Themes and Templates » DIsplay child navigation within child page

DIsplay child navigation within child page

  • Hey, I currently have a navigation bar displaying all the children of that specific page using the following snippet

    <div id="sub_nav_del">
                        <h4>Take a seat</h4>
                        <?php
                        $pages = get_pages('child_of='.$post->ID.'&sort_column=menu_order');
                        $count = 0;
                        foreach($pages as $page)
                        { ?>
    
                        <ul>
                            <li>
                            <h5 class="del">
                                <a href="<?php echo get_page_link($page->ID) ?>"><?php echo $page->post_title ?></a>
                            </h5>
                            </li>
                            </ul>
                        <?php
                        }
                        ?>

    However I would like the navigation to still be displayed if I am on one of the child pages.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘DIsplay child navigation within child page’ is closed to new replies.