Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can anyone provide any help on this? I have the same issue. My header has the main nav with just parents, then in the page template I include the sidebar which is just a simple submenu with children. It looks like this:

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

    I would like my output to be something like this:

    <h2>NAME OF PARENT PAGE HERE</h2>
    <ul id="submenu">
      <li>Name of Child 1</li>
      <li>Name of Child 2</li>
      <li>...etc</li>
    </ul>

    So, I’m just missing the h2, which should be the NAME of the PARENT page. Any help would be MUCH appreciated.

    I too am using Theme Switcher, and I was wondering if there is a work-around for this. Whenever Theme Switcher is activated and I go to edit a theme in Theme Editor, it just redirects me to the main page, as stated above.

    Does anyone know of a fix for this? It’s rather annoying to have to deactivate Theme Switcher every time I want to edit a theme.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)