ThemeShaper Forums » Thematic

[closed]

Subpage manu

(3 posts)
  • Started 10 years ago by philbenoit
  • Latest reply from philbenoit
  • This topic is resolved

Tags:

  1. philbenoit
    Member

    Hi all,

    I have found this hack that displays a menu of only sub pages of the page you are on. I wish to have this menu visible on all sub pages but at the moment it goes once you move to the sub page the menu goes.

    ie on page1 there are 3 sub pages, page2 page3 and page4. I wish to have the menu showing page2 page3 and page4 available on all these pages.

    here is the initial code

    <?php
    $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
    if ($children) { ?>
    
    <ul>
      <?php echo $children; ?>
    </ul>
    <?php } ?>

    any help would be great.

    Phil

    Posted 10 years ago #
  2. Jamie Mitchell
    Member

    hey Phil

    try the

    Sub Pages widget

    (search for it via your add plugins in the wp admin)

    it works a treat, and i use it all the time for the exact same thing as your trying to achieve.

    J

    Posted 10 years ago #
  3. philbenoit
    Member

    Thanks heaps Jamie,

    This was perfect and really extends the WP options to look more and more like a standard webpage.

    Thanks again,

    Phil

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.