• Resolved mzimmers

    (@mzimmers)


    Hi –

    I’m using the Fold Page List plugin (from https://www.webspaceworks.com/resources/wordpress/30/). It works wonderfully, except
    that when I travel down to a second-level child page, the link to the parent page (a first-level child page) disappears, and the user has no way to travel back.

    Any way to fix this, or is this just how it’s going to be? Thanks.

Viewing 16 replies (of 16 total)
  • Thanks everyone. Here is another modification of the code using the FoldPages to list the parents and the siblings in separate menus (note that I have my css classes included here as well which you’ll need to modify).

    <!-- level 2 menu begin -->
    
    <div class="submenuwrap">
    <ul class="submenu">
    <?php
    $g_page_id = $wp_query->get_queried_object_id();
    $ancestorIDs = _wswwpx_page_get_ancestor_ids($g_page_id);
    $titlePage = $ancestorIDs[1];
    wp_list_pages("title_li=&child_of=".$titlePage."&depth=1");
    ?>
    </ul>
    </div>
    
    <!-- level 2 menu end -->
    
    <!-- level 3 menu begin -->
    
    <?php
      if($post->post_parent)
      $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order&sort_order=DESC");
      else
      $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0&sort_column=menu_order&sort_order=DESC");
      if ($children) { ?>
    <div class="newslistwrap">
    <ul class="newslist">
    <h5 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h5>
    <?php echo $children; ?>
    </ul>
    </div>
    <?php } ?>
    
    <!-- level 3 menu end -->
Viewing 16 replies (of 16 total)
  • The topic ‘Fold Page List plugin’ is closed to new replies.